2007-09-03 14:10:57 +02:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libixp_for_wmii";
|
2008-03-23 17:52:27 +01:00
|
|
|
phases = "unpackPhase 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
|
2008-06-08 23:41:07 +02:00
|
|
|
make
|
|
|
|
mkdir -p \$out/include
|
|
|
|
cp -r include/*.h \$out/include
|
|
|
|
cp -r lib \$out
|
2007-09-03 14:10:57 +02:00
|
|
|
";
|
|
|
|
src = fetchurl {
|
2008-06-08 23:41:07 +02:00
|
|
|
url = http://www.suckless.org/download/libixp-0.4.tar.gz;
|
|
|
|
sha256 = "0b44p9wvmzxpyf2xd86rxyr49bmfh9cd5hj3d234gkvynvgph60p";
|
2007-09-03 14:10:57 +02:00
|
|
|
};
|
|
|
|
}
|