mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
438f35dac0
svn path=/nixpkgs/trunk/; revision=11270
19 lines
566 B
Nix
19 lines
566 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 install
|
|
";
|
|
src = fetchurl {
|
|
url = http://www.suckless.org/snaps/libixp-20070220.tar.gz;
|
|
sha256 = "0bhqgrxp0lnwyf3c9165nldyw300mifyh0mlyfg1i5qr54rk7p79";
|
|
};
|
|
}
|