summaryrefslogtreecommitdiff
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>2020-04-25 00:04:20 +0200
commite17ce661cc5be91523fc448fdf52cd36f6447f10 (patch)
treebfe3f0a2d9068057b344db62689e53589f27b728 /nix_path_env
parentf30b025f51adcda6cf2b72e39805b39ff66261a5 (diff)
downloadNUR-e17ce661cc5be91523fc448fdf52cd36f6447f10.tar.gz
NUR-e17ce661cc5be91523fc448fdf52cd36f6447f10.tar.zst
NUR-e17ce661cc5be91523fc448fdf52cd36f6447f10.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 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}