forked from rarias/jungle
Bundle static busybox
This commit is contained in:
@@ -10,7 +10,7 @@ with builtins;
|
||||
buildPackages,
|
||||
upx,
|
||||
|
||||
busybox,
|
||||
# busybox,
|
||||
cacert ? pkgs.cacert,
|
||||
compression ? "zstd -19 -T0",
|
||||
gnutar ? pkgs.pkgsStatic.gnutar,
|
||||
@@ -86,6 +86,7 @@ let
|
||||
caBundleZstd = pkgs.runCommand "cacerts" {} "cat ${cacert}/etc/ssl/certs/ca-bundle.crt | ${inp.zstd}/bin/zstd -19 > $out";
|
||||
|
||||
bwrap = packStaticBin "${inp.bubblewrap}/bin/bwrap";
|
||||
busybox = pkgs.pkgsStatic.busybox;
|
||||
nixStatic = packStaticBin "${inp.nixStatic}/bin/nix";
|
||||
proot = packStaticBin "${inp.proot}/bin/proot";
|
||||
zstd = packStaticBin "${inp.zstd}/bin/zstd";
|
||||
@@ -215,7 +216,7 @@ let
|
||||
(base64 -d> "\$dir/busybox/bin/busybox" && chmod +x "\$dir/busybox/bin/busybox") << END
|
||||
$(cat ${busybox}/bin/busybox | base64)
|
||||
END
|
||||
busyBins="${toString (attrNames (filterAttrs (d: type: type == "symlink") (readDir "${inp.busybox}/bin")))}"
|
||||
busyBins="${toString (attrNames (filterAttrs (d: type: type == "symlink") (readDir "${busybox}/bin")))}"
|
||||
for bin in \$busyBins; do
|
||||
[ ! -e "\$dir/busybox/bin/\$bin" ] && ln -s busybox "\$dir/busybox/bin/\$bin"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user