mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
e12399051a
svn path=/nixpkgs/trunk/; revision=4738
25 lines
412 B
Bash
25 lines
412 B
Bash
source $stdenv/setup
|
|
installFlags="PREFIX=$out"
|
|
|
|
preBuild=preBuild
|
|
preBuild() {
|
|
make -f Makefile-libbz2_so
|
|
}
|
|
|
|
preInstall=preInstall
|
|
preInstall() {
|
|
ensureDir $out/lib
|
|
cp -p libbz2.so* $out/lib
|
|
ln -s libbz2.so.*.*.* $out/lib/libbz2.so
|
|
}
|
|
|
|
postInstall=postInstall
|
|
postInstall() {
|
|
rm $out/bin/bunzip2 $out/bin/bzcat
|
|
ln -s bzip2 $out/bin/bunzip2
|
|
ln -s bzip2 $out/bin/bzcat
|
|
}
|
|
|
|
genericBuild
|
|
|