diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-24 23:56:22 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-25 00:04:21 +0200 |
commit | 590b8c075e8eb8dbceaea46fdc93aeff53011c64 (patch) | |
tree | 568c3a68b04aa5f03a2800e6a9b780aac86e1a59 | |
parent | fcc5798571bf76e7267673bea824746570e0d66d (diff) | |
download | NUR-590b8c075e8eb8dbceaea46fdc93aeff53011c64.tar.gz NUR-590b8c075e8eb8dbceaea46fdc93aeff53011c64.tar.zst NUR-590b8c075e8eb8dbceaea46fdc93aeff53011c64.zip |
Fix setup script using nixpos_custom
-rw-r--r-- | scripts/nix_env | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nix_env b/scripts/nix_env index 6326243b..fc6557cf 100644 --- a/scripts/nix_env +++ b/scripts/nix_env | |||
@@ -11,7 +11,7 @@ nixpkgsNext="$nixpkgs" | |||
11 | export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" | 11 | export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" |
12 | 12 | ||
13 | nixops_custom () { | 13 | nixops_custom () { |
14 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | 14 | _DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
15 | d=$(nix-build --no-out-link -E "with import <nixpkgs> { overlays = builtins.attrValues (import $(dirname $DIR)/overlays); }; nixops") | 15 | d=$(nix-build --no-out-link -E "with import <nixpkgs> { overlays = builtins.attrValues (import $(dirname $_DIR)/overlays); }; nixops") |
16 | ${d}/bin/nixops "$@" | 16 | ${d}/bin/nixops "$@" |
17 | } | 17 | } |