diff options
author | Adam Joseph <adam@westernsemico.com> | 2022-02-19 21:11:19 -0800 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2022-02-23 14:36:12 -0800 |
commit | 78d815c5efe419ffcfff754fa65b464decfef9b6 (patch) | |
tree | 84eafa40799f89d809ba83ec275ee4a246d17657 /pkgs/os-specific/linux/busybox | |
parent | 65c8149cb14200c172782ede4219f53ee1d751dd (diff) | |
download | nixpkgs-78d815c5efe419ffcfff754fa65b464decfef9b6.tar nixpkgs-78d815c5efe419ffcfff754fa65b464decfef9b6.tar.gz nixpkgs-78d815c5efe419ffcfff754fa65b464decfef9b6.tar.bz2 nixpkgs-78d815c5efe419ffcfff754fa65b464decfef9b6.tar.lz nixpkgs-78d815c5efe419ffcfff754fa65b464decfef9b6.tar.xz nixpkgs-78d815c5efe419ffcfff754fa65b464decfef9b6.tar.zst nixpkgs-78d815c5efe419ffcfff754fa65b464decfef9b6.zip |
busybox: add enableAppletSymlinks?true
This commit adds an argument enableAppletSymlinks?true, which can be set to false in order to turn off CONFIG_INSTALL_APPLET_SYMLINKS by users if they only want the main busybox binary in their profile. This is particularly useful when building pkgsStatic.busybox.
Diffstat (limited to 'pkgs/os-specific/linux/busybox')
-rw-r--r-- | pkgs/os-specific/linux/busybox/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/busybox/default.nix b/pkgs/os-specific/linux/busybox/default.nix index 9e21955808f..7aaedb5b1ac 100644 --- a/pkgs/os-specific/linux/busybox/default.nix +++ b/pkgs/os-specific/linux/busybox/default.nix @@ -1,6 +1,7 @@ { stdenv, lib, buildPackages, fetchurl, fetchFromGitLab , enableStatic ? stdenv.hostPlatform.isStatic , enableMinimal ? false +, enableAppletSymlinks ? true # Allow forcing musl without switching stdenv itself, e.g. for our bootstrapping: # nix build -f pkgs/top-level/release.nix stdenvBootstrapTools.x86_64-linux.dist , useMusl ? stdenv.hostPlatform.libc == "musl", musl @@ -95,6 +96,11 @@ stdenv.mkDerivation rec { CONFIG_STATIC y ''} + ${lib.optionalString (!enableAppletSymlinks) '' + CONFIG_INSTALL_APPLET_DONT y + CONFIG_INSTALL_APPLET_SYMLINKS n + ''} + # Use the external mount.cifs program. CONFIG_FEATURE_MOUNT_CIFS n CONFIG_FEATURE_MOUNT_HELPERS y |