diff options
author | xeji <36407913+xeji@users.noreply.github.com> | 2018-08-29 19:39:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-29 19:39:10 +0200 |
commit | 683707ea03d338e514c0fee75dccd61acd348c4c (patch) | |
tree | 6ded0a018f521c59868038e28ad30e56b60bb6d4 /pkgs/applications/window-managers | |
parent | 70b3ac8378382ec401d3f2d757f0102bd8c50825 (diff) | |
download | nixpkgs-683707ea03d338e514c0fee75dccd61acd348c4c.tar nixpkgs-683707ea03d338e514c0fee75dccd61acd348c4c.tar.gz nixpkgs-683707ea03d338e514c0fee75dccd61acd348c4c.tar.bz2 nixpkgs-683707ea03d338e514c0fee75dccd61acd348c4c.tar.lz nixpkgs-683707ea03d338e514c0fee75dccd61acd348c4c.tar.xz nixpkgs-683707ea03d338e514c0fee75dccd61acd348c4c.tar.zst nixpkgs-683707ea03d338e514c0fee75dccd61acd348c4c.zip |
dwm-git: init at 20180602 (#45716)
The latest tagged release dwm 6.1 is from 2015, so the development version is much more current.
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r-- | pkgs/applications/window-managers/dwm/git.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/dwm/git.nix b/pkgs/applications/window-managers/dwm/git.nix new file mode 100644 index 00000000000..aaa32dd6b11 --- /dev/null +++ b/pkgs/applications/window-managers/dwm/git.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchgit, libX11, libXinerama, libXft, patches ? [], conf ? null }: + +let + name = "dwm-git-20180602"; +in + +stdenv.mkDerivation { + inherit name; + + src = fetchgit { + url = "git://git.suckless.org/dwm"; + rev = "b69c870a3076d78ab595ed1cd4b41cf6b03b2610"; + sha256 = "10i079h79l4gdch1qy2vrrb2xxxkgkjmgphr5r9a75jbbagwvz0k"; + }; + + buildInputs = [ libX11 libXinerama libXft ]; + + prePatch = ''sed -i "s@/usr/local@$out@" config.mk''; + + # Allow users set their own list of patches + inherit patches; + + # Allow users to override the entire config file AFTER appying the patches + postPatch = stdenv.lib.optionalString (conf!=null) '' + echo -n '${conf}' > config.def.h + ''; + + buildPhase = "make"; + + meta = with stdenv.lib; { + homepage = https://suckless.org/; + description = "Dynamic window manager for X, development version"; + license = licenses.mit; + maintainers = with maintainers; [xeji]; + platforms = platforms.unix; + }; +} |