* Fix a regression in klibcShrunk.
svn path=/nixpkgs/trunk/; revision=11920
This commit is contained in:
parent
6fe2f27877
commit
031c022a25
@ -1,7 +1,11 @@
|
|||||||
{stdenv, klibc}:
|
{stdenv, klibc}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "${klibc.name}-shrunk";
|
# !!! For now, the name has to be exactly as long as the original
|
||||||
|
# name due to the sed hackery below. Once patchelf 0.4 is in the
|
||||||
|
# tree, we can do this properly.
|
||||||
|
#name = "${klibc.name}-shrunk";
|
||||||
|
name = "${klibc.name}";
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
ensureDir $out/lib
|
ensureDir $out/lib
|
||||||
cp -prd ${klibc}/lib/klibc/bin $out/
|
cp -prd ${klibc}/lib/klibc/bin $out/
|
||||||
@ -13,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
echo $i
|
echo $i
|
||||||
sed "s^$old^$new^" -i $i
|
sed "s^$old^$new^" -i $i
|
||||||
# !!! use patchelf
|
# !!! use patchelf
|
||||||
#patchelf --set-rpath /foo/bar $i
|
#patchelf --set-interpreter $new $i
|
||||||
done
|
done
|
||||||
''; # */
|
''; # */
|
||||||
allowedReferences = ["out"];
|
allowedReferences = ["out"];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user