2010-03-05 22:49:29 +01:00
|
|
|
{stdenv, fetchurl, libX11, libXinerama, patches ? []}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dwm-5.7.2";
|
2008-08-21 22:44:08 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-03-05 22:49:29 +01:00
|
|
|
url = "http://dl.suckless.org/dwm/${name}.tar.gz";
|
|
|
|
sha256 = "1q6dpyi3fx09wxrclfmr4k6516gzd1aj2svyvrayr76sslrzxgrj";
|
2008-08-21 22:44:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libX11 libXinerama ];
|
|
|
|
|
2010-03-05 23:10:54 +01:00
|
|
|
prePatch = ''set -x; sed -i "s@/usr/local@$out@" config.mk'';
|
2010-03-05 22:49:29 +01:00
|
|
|
|
|
|
|
# Allow users set their own list of patches
|
|
|
|
inherit patches;
|
|
|
|
|
2008-08-21 22:44:08 +02:00
|
|
|
buildPhase = " make ";
|
|
|
|
|
2010-03-05 22:49:29 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "www.suckless.org";
|
|
|
|
description = "dynamic window manager for X";
|
|
|
|
license="MIT";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
|
|
|
};
|
2008-08-21 22:44:08 +02:00
|
|
|
}
|