busybox: fix patchShebangs & build
Our patchShebangs expect coreutils stat instead of busybox stat. This broke patching the dispatch script. By enabling strict dependencies and using explicit --host parameter we not only avoid cross-compiling breackages but also work around this problem. Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
parent
287495a7aa
commit
8fb7c7fdfa
@ -118,9 +118,11 @@ stdenv.mkDerivation rec {
|
||||
logger() { '$out'/bin/logger "$@"; }\
|
||||
' ${debianDispatcherScript} > ${outDispatchPath}
|
||||
chmod 555 ${outDispatchPath}
|
||||
PATH=$out/bin patchShebangs ${outDispatchPath}
|
||||
HOST_PATH=$out/bin patchShebangs --host ${outDispatchPath}
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
buildInputs = lib.optionals (enableStatic && !useMusl && stdenv.cc.libc ? static) [ stdenv.cc.libc stdenv.cc.libc.static ];
|
||||
|
Loading…
Reference in New Issue
Block a user