* Rename stdenv-nix-linux-static to stdenv-linux.

svn path=/nixpkgs/trunk/; revision=2264
This commit is contained in:
Eelco Dolstra
2005-02-21 20:54:34 +00:00
parent 3e02536184
commit 63bd7cdb79
45 changed files with 80 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
chmod u+w $out/include
(cd $out/include && ln -s $extra/include/* .) || exit 1
cd $out
find . -not -type l -exec $extra2/bin/chmod u+w {} \;
find . -exec $patchelf --interpreter $out/lib/ld-linux.so.2 --shrink-rpath {} \; || true
$extra2/bin/rm -rf bin
$extra2/bin/cat ./lib/libc.so | $extra4/bin/sed "s|/nix/store/[a-z0-9]*-glibc|$out|g" > ./lib/libc.so
$extra2/bin/cat ./lib/libpthread.so | $extra4/bin/sed "s|/nix/store/[a-z0-9]*-glibc|$out|g" > ./lib/libpthread.so
rm $out/lib/*.so*

View File

@@ -0,0 +1,10 @@
set -x
set -e
PATH=$coreutils/bin
mkdir $out
cat > $out/setup <<EOF
PATH=$coreutils/bin:$gnused/bin
EOF

View File

@@ -0,0 +1,8 @@
set -x
set -e
echo $curl
$gunzip -d < $curl | $tar xvf -
$cp -prvd * $out

View File

@@ -0,0 +1,18 @@
set -e
echo "using curl executable $curl"
$curl/bin/curl "$url" > .tmp
$gunzip -d < .tmp | $tar xvf -
$cp -prd * $out
if test -n "$postProcess"; then
for i in $addToPath; do
export PATH=$PATH:$i/bin
done
for i in $postProcess; do
source $i
done
fi

View File

@@ -0,0 +1,9 @@
cd $out
chmod -R +w .
find . -type f | while read fn; do
$extra2/bin/cat $fn | $extra4/bin/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