2007-09-03 13:10:57 +01:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libixp_for_wmii";
|
2008-03-23 16:52:27 +00:00
|
|
|
phases = "unpackPhase installPhase";
|
2007-09-03 13:10:57 +01: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%\" \\
|
2010-05-09 15:17:15 +01:00
|
|
|
config.mk
|
2008-06-08 22:41:07 +01:00
|
|
|
make
|
|
|
|
mkdir -p \$out/include
|
|
|
|
cp -r include/*.h \$out/include
|
|
|
|
cp -r lib \$out
|
2007-09-03 13:10:57 +01:00
|
|
|
";
|
|
|
|
src = fetchurl {
|
2010-05-09 15:17:15 +01:00
|
|
|
url = http://dl.suckless.org/libs/libixp-0.5.tar.gz;
|
|
|
|
sha256 = "0jqyw8xzih7x7apdp2s9w8agjry890kf55zj2habsg78cyxz1x35";
|
2007-09-03 13:10:57 +01:00
|
|
|
};
|
2009-03-15 20:09:50 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://libs.suckless.org/libixp;
|
|
|
|
description = "stand-alone client/server 9P library";
|
|
|
|
license = "MIT / LPL";
|
|
|
|
};
|
2007-09-03 13:10:57 +01:00
|
|
|
}
|