package/hush: Add minimal POSIX shell

This commit is contained in:
Mikael 2024-10-03 16:25:45 +02:00
parent f70ec08c51
commit e930241af7
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0
2 changed files with 23 additions and 0 deletions

View file

@ -34,6 +34,9 @@ in {
# Terminfo # Terminfo
kitty.terminfo kitty.terminfo
# Minimal POSIX shell
self.packages.${system}.hush
# Core utilities # Core utilities
(lib.meta.setPrio 0 uutils-coreutils-noprefix) (lib.meta.setPrio 0 uutils-coreutils-noprefix)

20
package/hush.nix Normal file
View file

@ -0,0 +1,20 @@
{ ... }: { busybox }:
(busybox.overrideAttrs (prevAttrs: {
postInstall = ''
mv $out/bin/{busybox,sh}
'';
meta = prevAttrs.meta // {
mainProgram = "sh";
};
})).override {
enableMinimal = true;
enableAppletSymlinks = false;
extraConfig = ''
CONFIG_PIE y
CONFIG_SH_IS_ASH n
CONFIG_SH_IS_HUSH y
'';
}