build-fhs-userenv: runCommand -> runCommandLocal (#77253)

It's a trivial derivation, no need to build remotely (it's slower that
way).
This commit is contained in:
Bjørn Forsman
2020-02-14 20:16:49 +02:00
committed by GitHub
parent d54a58a2cd
commit d394c82cde
@@ -1,4 +1,4 @@
{ callPackage, runCommand, writeScript, stdenv, coreutils }: { callPackage, runCommandLocal, writeScript, stdenv, coreutils }:
let buildFHSEnv = callPackage ./env.nix { }; in let buildFHSEnv = callPackage ./env.nix { }; in
@@ -23,10 +23,11 @@ let
exec ${run} "$@" exec ${run} "$@"
''; '';
in runCommand name { in runCommandLocal name {
inherit meta; inherit meta;
passthru = passthru // { passthru = passthru // {
env = runCommand "${name}-shell-env" { env = runCommandLocal "${name}-shell-env" {
shellHook = '' shellHook = ''
exec ${chrootenv}/bin/chrootenv ${init runScript} "$(pwd)" exec ${chrootenv}/bin/chrootenv ${init runScript} "$(pwd)"
''; '';