2015-11-11 17:09:45 +01:00
|
|
|
{stdenv, fetchurl, libX11, libXinerama, libXft, patches ? []}:
|
2010-03-05 22:49:29 +01:00
|
|
|
|
2013-04-04 23:32:53 +02:00
|
|
|
let
|
2015-11-11 17:09:45 +01:00
|
|
|
name = "dwm-6.1";
|
2013-04-04 23:32:53 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
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";
|
2015-11-11 17:09:45 +01:00
|
|
|
sha256 = "1zkmwb6df6m254shx06ly90c0q4jl70skk1pvkixpb7hcxhwbxn2";
|
2008-08-21 22:44:08 +02:00
|
|
|
};
|
|
|
|
|
2015-11-11 17:09:45 +01:00
|
|
|
buildInputs = [ libX11 libXinerama libXft ];
|
2008-08-21 22:44:08 +02:00
|
|
|
|
2010-03-05 23:13:58 +01:00
|
|
|
prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
|
2010-03-05 22:49:29 +01:00
|
|
|
|
|
|
|
# Allow users set their own list of patches
|
2014-01-02 11:53:25 +01:00
|
|
|
inherit patches;
|
2010-03-05 22:49:29 +01:00
|
|
|
|
2008-08-21 22:44:08 +02:00
|
|
|
buildPhase = " make ";
|
|
|
|
|
2010-03-05 22:49:29 +01:00
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://suckless.org/;
|
2012-01-04 23:05:26 +01:00
|
|
|
description = "Dynamic window manager for X";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-03-05 22:49:29 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
|
|
|
};
|
2008-08-21 22:44:08 +02:00
|
|
|
}
|