dwm-git: init at 20180602 (#45716)

The latest tagged release dwm 6.1 is from 2015, so
the development version is much more current.
This commit is contained in:
xeji 2018-08-29 19:39:10 +02:00 committed by GitHub
parent 70b3ac8378
commit 683707ea03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -15902,6 +15902,11 @@ with pkgs;
patches = config.dwm.patches or [];
};
dwm-git = callPackage ../applications/window-managers/dwm/git.nix {
patches = config.dwm.patches or [];
conf = config.dwm.conf or null;
};
dwm-status = callPackage ../applications/window-managers/dwm/dwm-status.nix { };
dynamips = callPackage ../applications/virtualization/dynamips { };