diff --git a/lib/jail.nix b/lib/jail.nix index df8b120..48ca89b 100644 --- a/lib/jail.nix +++ b/lib/jail.nix @@ -103,7 +103,13 @@ let if builtins.length state.cleanup > 0 then "" else "exec " }${state.cmd} "''${RUNTIME_ARGS[@]}" -- ${state.entry} ${state.argv} '') - (text: pkgs.writeShellApplication { inherit name text; }) + ( + text: + pkgs.writeShellApplication { + inherit name text; + runtimeInputs = [ pkgs.coreutils ]; + } + ) # forward man pages (jailed: if exe ? man then jailed // { inherit (exe) man; } else jailed) diff --git a/tests/spec/TestPrelude.hs b/tests/spec/TestPrelude.hs index d490607..cef024b 100644 --- a/tests/spec/TestPrelude.hs +++ b/tests/spec/TestPrelude.hs @@ -73,7 +73,6 @@ inTestM = aroundWith $ \action () -> do (\(name, getVal) -> ((name,) <$>) <$> getVal) [ ("HOME", lookupEnv "HOME"), ("LANG", pure $ Just "en_US.UTF-8"), - ("PATH", lookupEnv "PATH"), ("DBUS_SESSION_BUS_ADDRESS", lookupEnv "DBUS_SESSION_BUS_ADDRESS"), ("XDG_RUNTIME_DIR", lookupEnv "XDG_RUNTIME_DIR") ]