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> | 2019-05-24 13:55:43 +0200 |
commit | db4f87d640a090c4b469595737503f4189923c45 (patch) | |
tree | ea82e39e954ea4cb1efa7ee3c49492480831c9e3 /nix_path_env | |
parent | c58dcd70150d63e01dfe01adbb38244598e6a881 (diff) | |
download | Nix-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_env | 6 |
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 | |||
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 | } | ||