diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-03-05 21:49:29 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-03-05 21:49:29 +0000 |
commit | 48fa4b52572b7a13051eda475c74aac9f7367b5c (patch) | |
tree | 2bbdedc22d64ed72383ae407783d6d6d6866f641 /pkgs/applications/window-managers/dwm | |
parent | ca86e6992bae33032c850dbda88150bdbd8a4db6 (diff) |
Updating dwm, and allowing users set their own patches to configure it.
svn path=/nixpkgs/trunk/; revision=20437
Diffstat (limited to 'pkgs/applications/window-managers/dwm')
-rw-r--r-- | pkgs/applications/window-managers/dwm/default.nix | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/pkgs/applications/window-managers/dwm/default.nix b/pkgs/applications/window-managers/dwm/default.nix index cb29a5b2a7c2..c24e4e583929 100644 --- a/pkgs/applications/window-managers/dwm/default.nix +++ b/pkgs/applications/window-managers/dwm/default.nix @@ -1,18 +1,27 @@ -args: with args; stdenv.mkDerivation { - name = "dwm-5.1"; +{stdenv, fetchurl, libX11, libXinerama, patches ? []}: + +stdenv.mkDerivation rec { + name = "dwm-5.7.2"; src = fetchurl { - url = http://code.suckless.org/dl/dwm/dwm-5.1.tar.gz; - sha256 = "d8dca894c4805a845baca1c3f9b16299e1eaeab661fd3827b374e57b4c603bf8"; + url = "http://dl.suckless.org/dwm/${name}.tar.gz"; + sha256 = "1q6dpyi3fx09wxrclfmr4k6516gzd1aj2svyvrayr76sslrzxgrj"; }; buildInputs = [ libX11 libXinerama ]; - patchPhase = ''sed -i "s@/usr/local@$out@" config.mk''; + postPatch = ''sed -i "s@/usr/local@$out@" config.mk''; + + # Allow users set their own list of patches + inherit patches; + buildPhase = " make "; - meta = { homepage = "www.suckless.org"; - description = "dynamic window manager for X"; - license="MIT"; - }; + 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; + }; } |