diff --git a/template/pkgs/triton-docker-env-shell.nix b/template/pkgs/triton-docker-env-shell.nix index a5bf1fb..a0da1ca 100644 --- a/template/pkgs/triton-docker-env-shell.nix +++ b/template/pkgs/triton-docker-env-shell.nix @@ -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 diff --git a/template/pkgs/triton-docker-env.nix b/template/pkgs/triton-docker-env.nix index 16659f4..300d690 100644 --- a/template/pkgs/triton-docker-env.nix +++ b/template/pkgs/triton-docker-env.nix @@ -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; }))