summary refs log tree commit diff
path: root/pkgs/misc/nix-static
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2006-08-02 10:52:32 +0000
committerArmijn Hemel <armijn@gpl-violations.org>2006-08-02 10:52:32 +0000
commit2f5ec262a859afcc9750b0790a08b839105d2abd (patch)
tree1929d34387684a7a71b402bb644b248e83ac73dd /pkgs/misc/nix-static
parentaefc9586ec71c0e91d4b025e34423ca0ff11a793 (diff)
downloadnixlib-2f5ec262a859afcc9750b0790a08b839105d2abd.tar
nixlib-2f5ec262a859afcc9750b0790a08b839105d2abd.tar.gz
nixlib-2f5ec262a859afcc9750b0790a08b839105d2abd.tar.bz2
nixlib-2f5ec262a859afcc9750b0790a08b839105d2abd.tar.lz
nixlib-2f5ec262a859afcc9750b0790a08b839105d2abd.tar.xz
nixlib-2f5ec262a859afcc9750b0790a08b839105d2abd.tar.zst
nixlib-2f5ec262a859afcc9750b0790a08b839105d2abd.zip
nuke references to glibc...this should become a generic function somewhere...
svn path=/nixpkgs/trunk/; revision=6017
Diffstat (limited to 'pkgs/misc/nix-static')
-rw-r--r--pkgs/misc/nix-static/builder.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/misc/nix-static/builder.sh b/pkgs/misc/nix-static/builder.sh
index 604f90db18f1..2d0b46267c78 100644
--- a/pkgs/misc/nix-static/builder.sh
+++ b/pkgs/misc/nix-static/builder.sh
@@ -11,4 +11,16 @@ preConfigure() {
 
 preConfigure=preConfigure
 
+postInstall() {
+  cd $out/bin
+
+  find . -type f | while read fn; do
+    cat $fn | sed "s|/nix/store/[a-z0-9]*-|/nix/store/ffffffffffffffffffffffffffffffff-|g" > $fn.tmp
+    if test -x $fn; then chmod +x $fn.tmp; fi
+    mv $fn.tmp $fn
+  done
+}
+
+postInstall=postInstall
+
 genericBuild