i3: fixed build

- The make variable PREFIX must be at build time because common.mk uses it to
   decide where to expect $SYSCONFDIR.

 - The make target "all" is run by default and needn't be set explicitly.

 - Shebang paths in scripts are patched automatically be the default builder,
   we don't have to do that manually.
This commit is contained in:
Peter Simons 2012-07-12 11:28:15 +02:00
parent 8f736be126
commit 293027453f

View File

@ -13,18 +13,11 @@ stdenv.mkDerivation rec {
buildInputs = [ which pkgconfig libxcb xcbutilkeysyms xcbutil bison xcbutilwm buildInputs = [ which pkgconfig libxcb xcbutilkeysyms xcbutil bison xcbutilwm
libstartup_notification libX11 pcre libev yajl flex libXcursor perl ]; libstartup_notification libX11 pcre libev yajl flex libXcursor perl ];
prePatch = '' configurePhase = "makeFlags=PREFIX=$out";
sed s,/usr/bin/env,${coreutils}/bin/env, -i generate-command-parser.pl
sed s,/usr/bin/env,${coreutils}/bin/env, -i i3-migrate-config-to-v4
sed s,/usr/bin/env,${coreutils}/bin/env, -i i3-wsbar
'';
makeFlags = "all";
installFlags = "PREFIX=\${out}";
meta = { meta = {
description = "i3 is a tiling window manager"; description = "i3 is a tiling window manager";
homepage = http://i3wm.org; homepage = "http://i3wm.org";
maintainers = [ stdenv.lib.maintainers.garbas ]; maintainers = [ stdenv.lib.maintainers.garbas ];
license = stdenv.lib.licenses.bsd3; license = stdenv.lib.licenses.bsd3;
}; };