Updating dwm, and allowing users set their own patches to configure it.
svn path=/nixpkgs/trunk/; revision=20437
This commit is contained in:
parent
ca86e6992b
commit
48fa4b5257
@ -1,18 +1,27 @@
|
|||||||
args: with args; stdenv.mkDerivation {
|
{stdenv, fetchurl, libX11, libXinerama, patches ? []}:
|
||||||
name = "dwm-5.1";
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "dwm-5.7.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://code.suckless.org/dl/dwm/dwm-5.1.tar.gz;
|
url = "http://dl.suckless.org/dwm/${name}.tar.gz";
|
||||||
sha256 = "d8dca894c4805a845baca1c3f9b16299e1eaeab661fd3827b374e57b4c603bf8";
|
sha256 = "1q6dpyi3fx09wxrclfmr4k6516gzd1aj2svyvrayr76sslrzxgrj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libX11 libXinerama ];
|
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 ";
|
buildPhase = " make ";
|
||||||
|
|
||||||
meta = { homepage = "www.suckless.org";
|
meta = {
|
||||||
description = "dynamic window manager for X";
|
homepage = "www.suckless.org";
|
||||||
license="MIT";
|
description = "dynamic window manager for X";
|
||||||
};
|
license="MIT";
|
||||||
|
maintainers = with stdenv.lib.maintainers; [viric];
|
||||||
|
platforms = with stdenv.lib.platforms; all;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -7020,6 +7020,7 @@ let
|
|||||||
dwm = import ../applications/window-managers/dwm {
|
dwm = import ../applications/window-managers/dwm {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
inherit (xlibs) libX11 libXinerama;
|
inherit (xlibs) libX11 libXinerama;
|
||||||
|
patches = getConfig [ "dwm" "patches" ] [];
|
||||||
};
|
};
|
||||||
|
|
||||||
eaglemode = import ../applications/misc/eaglemode {
|
eaglemode = import ../applications/misc/eaglemode {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user