about summary refs log blame commit diff
path: root/release-common.nix
blob: 8047c75bdb74038a17a617f6e5477a642b8443ec (plain) (tree)



















                                              
{ pkgs }:

rec {
  sh = pkgs.busybox.override {
    useMusl = true;
    enableStatic = true;
    enableMinimal = true;
    extraConfig = ''
      CONFIG_ASH y
      CONFIG_ASH_BUILTIN_ECHO y
      CONFIG_ASH_BUILTIN_TEST y
      CONFIG_ASH_OPTIMIZE_FOR_SIZE y
    '';
  };

  configureFlags =
    [ "--disable-init-state"
      "--enable-gc"
      "--with-sandbox-shell=${sh}/bin/busybox"
    ];
}