diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2020-02-14 19:16:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 20:16:49 +0200 |
commit | d394c82cde39f3acd4be0a0d22fe379e6c656e85 (patch) | |
tree | e9f2f660de7ccc9ba0dd477e6d5bfa669530d1ab | |
parent | d54a58a2cdc9828a4dc646fb830fbddad2e6bb6f (diff) |
build-fhs-userenv: runCommand -> runCommandLocal (#77253)
It's a trivial derivation, no need to build remotely (it's slower that way).
-rw-r--r-- | pkgs/build-support/build-fhs-userenv/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/build-support/build-fhs-userenv/default.nix b/pkgs/build-support/build-fhs-userenv/default.nix index 707b256cd4b4a..e7db6a75297d1 100644 --- a/pkgs/build-support/build-fhs-userenv/default.nix +++ b/pkgs/build-support/build-fhs-userenv/default.nix @@ -1,4 +1,4 @@ -{ callPackage, runCommand, writeScript, stdenv, coreutils }: +{ callPackage, runCommandLocal, writeScript, stdenv, coreutils }: let buildFHSEnv = callPackage ./env.nix { }; in @@ -23,10 +23,11 @@ let exec ${run} "$@" ''; -in runCommand name { +in runCommandLocal name { inherit meta; + passthru = passthru // { - env = runCommand "${name}-shell-env" { + env = runCommandLocal "${name}-shell-env" { shellHook = '' exec ${chrootenv}/bin/chrootenv ${init runScript} "$(pwd)" ''; |