]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/commitdiff
Fix setup script using nixpos_custom
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 May 2019 21:56:22 +0000 (23:56 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 Apr 2020 22:04:21 +0000 (00:04 +0200)
scripts/nix_env

index 6326243b6bb694a7b2505b663f67f0aef8b5f481..fc6557cf75a8d61ad1bfefdefb9a3aa04dac470f 100644 (file)
@@ -11,7 +11,7 @@ nixpkgsNext="$nixpkgs"
 export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious"
 
 nixops_custom () {
-  DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
-  d=$(nix-build --no-out-link -E "with import <nixpkgs> { overlays = builtins.attrValues (import $(dirname $DIR)/overlays); }; nixops")
+  _DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+  d=$(nix-build --no-out-link -E "with import <nixpkgs> { overlays = builtins.attrValues (import $(dirname $_DIR)/overlays); }; nixops")
   ${d}/bin/nixops "$@"
 }