Files
nixpkgs/pkgs/by-name/dw/dwmblocks/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
981 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
libX11,
patches ? [ ],
writeText,
conf ? null,
}:
stdenv.mkDerivation {
pname = "dwmblocks";
version = "0-unstable-2024-08-24";
src = fetchFromGitHub {
owner = "torrinfail";
repo = "dwmblocks";
rev = "8cedd220684064f1433749ed2a19a6184c22cf07";
hash = "sha256-QtYQB2mvw1k2LA8D+/cVnA8+GRDWjhIM6rxfi/IGjEw=";
};
buildInputs = [ libX11 ];
inherit patches;
postPatch =
let
configFile =
if lib.isDerivation conf || builtins.isPath conf then conf else writeText "blocks.def.h" conf;
in
lib.optionalString (conf != null) "cp ${configFile} blocks.def.h";
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Modular status bar for dwm written in c";
homepage = "https://github.com/torrinfail/dwmblocks";
license = licenses.isc;
maintainers = with maintainers; [ sophrosyne ];
platforms = platforms.linux;
mainProgram = "dwmblocks";
};
}