2021-04-18 22:26:43 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
libX11,
|
|
|
|
patches ? [ ],
|
|
|
|
writeText,
|
|
|
|
conf ? null,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "dwmblocks";
|
2024-10-16 16:57:44 +00:00
|
|
|
version = "0-unstable-2024-08-24";
|
2021-04-18 22:26:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "torrinfail";
|
|
|
|
repo = "dwmblocks";
|
2024-10-16 16:57:44 +00:00
|
|
|
rev = "8cedd220684064f1433749ed2a19a6184c22cf07";
|
|
|
|
hash = "sha256-QtYQB2mvw1k2LA8D+/cVnA8+GRDWjhIM6rxfi/IGjEw=";
|
2021-04-18 22:26:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2021-05-08 10:41:20 +00:00
|
|
|
platforms = platforms.linux;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "dwmblocks";
|
2021-04-18 22:26:43 +00:00
|
|
|
};
|
|
|
|
}
|