1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/tools/package-management/nix-static/builder.sh
Eelco Dolstra a7d27b2201 * Move nix to tools/package-management, and use the latest unstable
release.

svn path=/nixpkgs/trunk/; revision=8477
2007-03-29 09:24:14 +00:00

27 lines
514 B
Bash

source $stdenv/setup
configureFlags="\
--with-store-dir=$storeDir --localstatedir=$stateDir \
--with-aterm=$aterm --with-bdb=$bdb \
--disable-init-state"
preConfigure() {
autoreconf
}
preConfigure=preConfigure
postInstall() {
cd $out/bin
find . -type f | while read fn; do
cat $fn | sed "s|/nix/store/[a-z0-9]*-glibc|/nix/store/ffffffffffffffffffffffffffffffff-glibc|g" > $fn.tmp
if test -x $fn; then chmod +x $fn.tmp; fi
mv $fn.tmp $fn
done
}
postInstall=postInstall
genericBuild