681929cd4d
So, I move what I had in postPatch to prePatch, which is run with or without 'patches'. svn path=/nixpkgs/trunk/; revision=20440
28 lines
682 B
Nix
28 lines
682 B
Nix
{stdenv, fetchurl, libX11, libXinerama, patches ? []}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dwm-5.7.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://dl.suckless.org/dwm/${name}.tar.gz";
|
|
sha256 = "1q6dpyi3fx09wxrclfmr4k6516gzd1aj2svyvrayr76sslrzxgrj";
|
|
};
|
|
|
|
buildInputs = [ libX11 libXinerama ];
|
|
|
|
prePatch = ''set -x; 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";
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
platforms = with stdenv.lib.platforms; all;
|
|
};
|
|
}
|