mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
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:
parent
d54a58a2cd
commit
d394c82cde
@ -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)"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user