aboutsummaryrefslogtreecommitdiff
path: root/nix_path_env
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-24 13:55:43 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-24 13:55:43 +0200
commitdb4f87d640a090c4b469595737503f4189923c45 (patch)
treeea82e39e954ea4cb1efa7ee3c49492480831c9e3 /nix_path_env
parentc58dcd70150d63e01dfe01adbb38244598e6a881 (diff)
downloadNix-db4f87d640a090c4b469595737503f4189923c45.tar.gz
Nix-db4f87d640a090c4b469595737503f4189923c45.tar.zst
Nix-db4f87d640a090c4b469595737503f4189923c45.zip
Build nixops_custom on the fly
Diffstat (limited to 'nix_path_env')
-rw-r--r--nix_path_env6
1 files changed, 6 insertions, 0 deletions
diff --git a/nix_path_env b/nix_path_env
index 901cd69..19f7cca 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}