2007-09-03 14:10:57 +02:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libixp_for_wmii";
|
2007-11-05 09:32:20 +01:00
|
|
|
phases = (if args.includeUnpack then "unpackPhase " else "")+"installPhase";
|
2007-09-03 14:10:57 +02:00
|
|
|
installPhase = "
|
|
|
|
|
|
|
|
export LDFLAGS\=$(echo \$NIX_LDFLAGS | sed -e 's/-rpath/-L/g')
|
|
|
|
sed -i -e \"s%^PREFIX.*%PREFIX=\$out%\" \\
|
|
|
|
-e \"s%^\\(INCLUDE.*\\)%\\1 \$NIX_CFLAGS_COMPILE%\" \\
|
|
|
|
-e \"s%^\\(LIBS.*\\)%\\1 \$LDFLAGS%\" \\
|
|
|
|
config.mk
|
|
|
|
make install
|
|
|
|
";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.suckless.org/snaps/libixp-20070220.tar.gz;
|
|
|
|
sha256 = "0bhqgrxp0lnwyf3c9165nldyw300mifyh0mlyfg1i5qr54rk7p79";
|
|
|
|
};
|
|
|
|
}
|