package/hush: Add minimal POSIX shell
This commit is contained in:
parent
f70ec08c51
commit
e930241af7
2 changed files with 23 additions and 0 deletions
|
@ -34,6 +34,9 @@ in {
|
|||
# Terminfo
|
||||
kitty.terminfo
|
||||
|
||||
# Minimal POSIX shell
|
||||
self.packages.${system}.hush
|
||||
|
||||
# Core utilities
|
||||
(lib.meta.setPrio 0 uutils-coreutils-noprefix)
|
||||
|
||||
|
|
20
package/hush.nix
Normal file
20
package/hush.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue