2010-03-06 00:49:29 +03:00
|
|
|
{stdenv, fetchurl, libX11, libXinerama, patches ? []}:
|
|
|
|
|
2013-04-05 01:32:53 +04:00
|
|
|
let
|
2012-01-05 02:05:26 +04:00
|
|
|
name = "dwm-6.0";
|
2013-04-05 01:32:53 +04:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2008-08-22 00:44:08 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-03-06 00:49:29 +03:00
|
|
|
url = "http://dl.suckless.org/dwm/${name}.tar.gz";
|
2012-01-05 02:05:26 +04:00
|
|
|
sha256 = "0mpbivy9j80l1jqq4bd4g4z8s5c54fxrjj44avmfwncjwqylifdj";
|
2008-08-22 00:44:08 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libX11 libXinerama ];
|
|
|
|
|
2010-03-06 01:13:58 +03:00
|
|
|
prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
|
2010-03-06 00:49:29 +03:00
|
|
|
|
|
|
|
# Allow users set their own list of patches
|
2013-04-05 01:32:53 +04:00
|
|
|
patches = [ ./confnotify-6.0.patch ] ++ patches;
|
2010-03-06 00:49:29 +03:00
|
|
|
|
2008-08-22 00:44:08 +04:00
|
|
|
buildPhase = " make ";
|
|
|
|
|
2010-03-06 00:49:29 +03:00
|
|
|
meta = {
|
|
|
|
homepage = "www.suckless.org";
|
2012-01-05 02:05:26 +04:00
|
|
|
description = "Dynamic window manager for X";
|
|
|
|
license = "MIT";
|
2010-03-06 00:49:29 +03:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
|
|
|
};
|
2008-08-22 00:44:08 +04:00
|
|
|
}
|