diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-08-09 21:28:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-09 21:28:26 +0200 |
commit | 45d8e75df1984adaee908b54457903c50d8ec412 (patch) | |
tree | 1c23ea7897454a922562c23b9ad209c5fb70fcb1 /pkgs | |
parent | e13271f34739565993e8256d38348ac165850adf (diff) | |
download | pnpkgs-45d8e75df1984adaee908b54457903c50d8ec412.tar.gz pnpkgs-45d8e75df1984adaee908b54457903c50d8ec412.zip |
Add dmenu
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/dmenu/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/dmenu/default.nix b/pkgs/dmenu/default.nix new file mode 100644 index 0000000..55de674 --- /dev/null +++ b/pkgs/dmenu/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchgit, libX11, libXinerama, libXft, zlib, patches ? [] }: + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "dmenu"; + + src = fetchgit { + url = "https://github.com/LukeSmithXYZ/dmenu"; + rev = "89c6680fc5174c028fa692a9112f037d19a1bc72"; + sha256 = "0sxa3z676ip0w87b0zjapx68wpwzc4mkijjxvnpka2vm4qw5hpsl"; + }; + + buildInputs = [ libX11 libXinerama zlib libXft ]; + + inherit patches; + + postPatch = '' + sed -ri -e 's!\<(dmenu|dmenu_path|stest)\>!'"$out/bin"'/&!g' dmenu_run + sed -ri -e 's!\<stest\>!'"$out/bin"'/&!g' dmenu_path + ''; + + preConfigure = '' + sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk + ''; + + makeFlags = [ "CC:=$(CC)" ]; + + meta = { + homepage = "https://github.com/LukeSmithXYZ/dmenu"; + description = "dmenu setup for LARBS"; + license = licenses.mit; + maintainers = with maintainers; [pniedzwiedzinski]; + platforms = platforms.all; + }; +} |