summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nix_path_env6
1 files changed, 6 insertions, 0 deletions
diff --git a/nix_path_env b/nix_path_env
index 901cd693..19f7ccaf 100644
--- a/nix_path_env
+++ b/nix_path_env
@@ -9,3 +9,9 @@ fi
9nixpkgsPrevious="$nixpkgs" 9nixpkgsPrevious="$nixpkgs"
10nixpkgsNext="$nixpkgs" 10nixpkgsNext="$nixpkgs"
11export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" 11export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious"
12
13nixops_custom () {
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 $DIR/overlays); }; nixops")
16 ${d}/bin/nixops "$@"
17}