mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
minimal-bootstrap: separate musl tools from runtime
This commit is contained in:
@@ -25,6 +25,11 @@ bash.runCommand "${pname}-${version}"
|
||||
{
|
||||
inherit pname version meta;
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"bin"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
gcc
|
||||
binutils
|
||||
@@ -87,5 +92,9 @@ bash.runCommand "${pname}-${version}"
|
||||
# Install
|
||||
make -j $NIX_BUILD_CORES install
|
||||
sed -i 's|/bin/sh|${bash}/bin/bash|' $out/bin/*
|
||||
ln -s ../lib/libc.so $out/bin/ldd
|
||||
|
||||
# Don't retain bootstrap bash in libc closure in wrapper
|
||||
mkdir -p $bin
|
||||
mv $out/bin $bin/bin
|
||||
ln -s $out/lib/libc.so $bin/bin/ldd
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user