Use writeShellScriptBin for better zsh + z compatibility

This commit is contained in:
jhonas 2022-03-03 02:43:34 +01:00
parent dc4bd02e39
commit f5d8100d91
Signed by: teutat3s
GPG key ID: 924889A86D0B0FEB
2 changed files with 2 additions and 5 deletions

View file

@ -1,6 +1,7 @@
{ pkgs, cnsBaseDomain, dataCenters, mantaDomain, tritonApiDomain, ... }:
with pkgs.nodePackages;
''
export PATH="${triton}/bin:${json}/bin:$PATH"
# script to set the docker, triton, manta and CNS env vars for the current
# triton profile

View file

@ -4,8 +4,4 @@ let
inherit system;
};
in
pkgs.writeShellApplication {
name = "triton-docker-env.sh";
runtimeInputs = with pkgs.nodePackages; [ triton json ];
text = import ./triton-docker-env-shell.nix { inherit pkgs cnsBaseDomain dataCenters mantaDomain tritonApiDomain; };
}
(pkgs.writeShellScriptBin "triton-docker-env.sh" (import ./triton-docker-env-shell.nix { inherit pkgs cnsBaseDomain dataCenters mantaDomain tritonApiDomain; }))