Use writeShellScriptBin for better zsh + z compatibility
This commit is contained in:
parent
dc4bd02e39
commit
f5d8100d91
|
@ -1,6 +1,7 @@
|
||||||
{ pkgs, cnsBaseDomain, dataCenters, mantaDomain, tritonApiDomain, ... }:
|
{ pkgs, cnsBaseDomain, dataCenters, mantaDomain, tritonApiDomain, ... }:
|
||||||
with pkgs.nodePackages;
|
with pkgs.nodePackages;
|
||||||
''
|
''
|
||||||
|
export PATH="${triton}/bin:${json}/bin:$PATH"
|
||||||
# script to set the docker, triton, manta and CNS env vars for the current
|
# script to set the docker, triton, manta and CNS env vars for the current
|
||||||
# triton profile
|
# triton profile
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,4 @@ let
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.writeShellApplication {
|
(pkgs.writeShellScriptBin "triton-docker-env.sh" (import ./triton-docker-env-shell.nix { inherit pkgs cnsBaseDomain dataCenters mantaDomain tritonApiDomain; }))
|
||||||
name = "triton-docker-env.sh";
|
|
||||||
runtimeInputs = with pkgs.nodePackages; [ triton json ];
|
|
||||||
text = import ./triton-docker-env-shell.nix { inherit pkgs cnsBaseDomain dataCenters mantaDomain tritonApiDomain; };
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue