nixpkgs/pkgs/development/libraries/libixp_for_wmii/default.nix
Marc Weber 620138ad0c removed libixp-0.3 (wmiimenu does also build with 0.4)
wmii updated

svn path=/nixpkgs/trunk/; revision=12011
2008-06-08 21:41:07 +00:00

21 lines
641 B
Nix

args: with args;
stdenv.mkDerivation {
name = "libixp_for_wmii";
phases = "unpackPhase installPhase";
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
mkdir -p \$out/include
cp -r include/*.h \$out/include
cp -r lib \$out
";
src = fetchurl {
url = http://www.suckless.org/download/libixp-0.4.tar.gz;
sha256 = "0b44p9wvmzxpyf2xd86rxyr49bmfh9cd5hj3d234gkvynvgph60p";
};
}