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> | 2019-05-24 23:56:22 +0200 |
commit | d5d97b8b57457989ff3a0fa38229a98482d33f65 (patch) | |
tree | 997f4967a5d091d52d679c5736efffea97af4508 /scripts/nix_env | |
parent | ea3a7a25ed93f413abc756ed0e1b95db2b1b5027 (diff) | |
download | Nix-d5d97b8b57457989ff3a0fa38229a98482d33f65.tar.gz Nix-d5d97b8b57457989ff3a0fa38229a98482d33f65.tar.zst Nix-d5d97b8b57457989ff3a0fa38229a98482d33f65.zip |
Fix setup script using nixpos_custom
Diffstat (limited to 'scripts/nix_env')
-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 6326243..fc6557c 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 | } |