2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchgit, libX11, libXinerama, libXft, patches ? [], conf ? null }:
|
2018-08-29 19:39:10 +02:00
|
|
|
|
|
|
|
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
|
2021-01-15 14:21:58 +01:00
|
|
|
postPatch = lib.optionalString (conf!=null) ''
|
2018-08-29 19:39:10 +02:00
|
|
|
echo -n '${conf}' > config.def.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "make";
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://suckless.org/";
|
2018-08-29 19:39:10 +02:00
|
|
|
description = "Dynamic window manager for X, development version";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [xeji];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|