diff options
author | sophrosyne97 <joshuaortiz@tutanota.com> | 2021-04-18 18:26:43 -0400 |
---|---|---|
committer | sophrosyne97 <joshuaortiz@tutanota.com> | 2021-04-19 10:10:03 -0400 |
commit | f48fe5df44e060c37519b31da3f740dd7b37cc14 (patch) | |
tree | 3ef30c739aa690ef40a2cfef3e9814270e765ab2 /pkgs/applications/misc/dwmblocks | |
parent | a6fb208ef0546d30d2c82d2b67aeac32d1e35516 (diff) | |
download | nixpkgs-f48fe5df44e060c37519b31da3f740dd7b37cc14.tar nixpkgs-f48fe5df44e060c37519b31da3f740dd7b37cc14.tar.gz nixpkgs-f48fe5df44e060c37519b31da3f740dd7b37cc14.tar.bz2 nixpkgs-f48fe5df44e060c37519b31da3f740dd7b37cc14.tar.lz nixpkgs-f48fe5df44e060c37519b31da3f740dd7b37cc14.tar.xz nixpkgs-f48fe5df44e060c37519b31da3f740dd7b37cc14.tar.zst nixpkgs-f48fe5df44e060c37519b31da3f740dd7b37cc14.zip |
dwmblocks: init at 1.0
Diffstat (limited to 'pkgs/applications/misc/dwmblocks')
-rw-r--r-- | pkgs/applications/misc/dwmblocks/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/misc/dwmblocks/default.nix b/pkgs/applications/misc/dwmblocks/default.nix new file mode 100644 index 00000000000..45757787c7c --- /dev/null +++ b/pkgs/applications/misc/dwmblocks/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchFromGitHub, libX11, patches ? [ ], writeText, conf ? null }: + +stdenv.mkDerivation { + pname = "dwmblocks"; + version = "unstable-2020-12-27"; + + src = fetchFromGitHub { + owner = "torrinfail"; + repo = "dwmblocks"; + rev = "96cbb453e5373c05372fd4bf3faacfa53e409067"; + sha256 = "00lxfxsrvhm60zzqlcwdv7xkqzya69mgpi2mr3ivzbc8s9h8nwqx"; + }; + + 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.all; + }; +} |