* Rename stdenv-nix-linux-static to stdenv-linux.
svn path=/nixpkgs/trunk/; revision=2264
This commit is contained in:
13
pkgs/stdenv/linux/scripts/add-symlink.sh
Normal file
13
pkgs/stdenv/linux/scripts/add-symlink.sh
Normal 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*
|
||||
10
pkgs/stdenv/linux/scripts/builder-stdenv-initial.sh
Normal file
10
pkgs/stdenv/linux/scripts/builder-stdenv-initial.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
set -x
|
||||
set -e
|
||||
|
||||
PATH=$coreutils/bin
|
||||
|
||||
mkdir $out
|
||||
|
||||
cat > $out/setup <<EOF
|
||||
PATH=$coreutils/bin:$gnused/bin
|
||||
EOF
|
||||
8
pkgs/stdenv/linux/scripts/curl-unpack
Normal file
8
pkgs/stdenv/linux/scripts/curl-unpack
Normal file
@@ -0,0 +1,8 @@
|
||||
set -x
|
||||
set -e
|
||||
|
||||
echo $curl
|
||||
|
||||
$gunzip -d < $curl | $tar xvf -
|
||||
|
||||
$cp -prvd * $out
|
||||
18
pkgs/stdenv/linux/scripts/download-script
Normal file
18
pkgs/stdenv/linux/scripts/download-script
Normal 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
|
||||
9
pkgs/stdenv/linux/scripts/fix-outpath.sh
Normal file
9
pkgs/stdenv/linux/scripts/fix-outpath.sh
Normal 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
|
||||
Reference in New Issue
Block a user