build-fhs-userenv: added the option meta to be passed down to the final derivation.

This commit is contained in:
Matthew O'Gorman
2016-01-06 03:50:49 -05:00
parent a413b8fde1
commit c87ef76027
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{ runCommand, lib, writeText, writeScriptBin, stdenv, bash, ruby } :
{ env, runScript ? "${bash}/bin/bash", extraBindMounts ? [], extraInstallCommands ? "" } :
{ env, runScript ? "${bash}/bin/bash", extraBindMounts ? [], extraInstallCommands ? "", importMeta ? {} } :
let
name = env.pname;
@@ -26,6 +26,7 @@ let
'';
in runCommand name {
meta = importMeta;
passthru.env =
runCommand "${name}-shell-env" {
shellHook = ''