From: Ismaƫl Bouya Date: Fri, 24 May 2019 11:55:43 +0000 (+0200) Subject: Build nixops_custom on the fly X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=e17ce661cc5be91523fc448fdf52cd36f6447f10;p=perso%2FImmae%2FConfig%2FNix%2FNUR.git Build nixops_custom on the fly --- 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 nixpkgsPrevious="$nixpkgs" nixpkgsNext="$nixpkgs" export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious" + +nixops_custom () { + DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" + d=$(nix-build --no-out-link -E "with import { overlays = builtins.attrValues (import $DIR/overlays); }; nixops") + ${d}/bin/nixops "$@" +}