diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-24 13:55:43 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-25 00:04:20 +0200 |
commit | e17ce661cc5be91523fc448fdf52cd36f6447f10 (patch) | |
tree | bfe3f0a2d9068057b344db62689e53589f27b728 /nix_path_env | |
parent | f30b025f51adcda6cf2b72e39805b39ff66261a5 (diff) | |
download | NUR-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_env | 6 |
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 | |||
9 | nixpkgsPrevious="$nixpkgs" | 9 | nixpkgsPrevious="$nixpkgs" |
10 | nixpkgsNext="$nixpkgs" | 10 | nixpkgsNext="$nixpkgs" |
11 | export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" | 11 | export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" |
12 | |||
13 | nixops_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 | } | ||