diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-24 14:43:09 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-24 14:45:37 +0200 |
commit | dbcba2ea2b7301aaa7e6487c2589b09ef09ba066 (patch) | |
tree | b4cd4b064468840e96757a55adbe9fd57a9d7904 /nix_path_env | |
parent | db4f87d640a090c4b469595737503f4189923c45 (diff) | |
download | Nix-dbcba2ea2b7301aaa7e6487c2589b09ef09ba066.tar.gz Nix-dbcba2ea2b7301aaa7e6487c2589b09ef09ba066.tar.zst Nix-dbcba2ea2b7301aaa7e6487c2589b09ef09ba066.zip |
Reorganize files
Diffstat (limited to 'nix_path_env')
-rw-r--r-- | nix_path_env | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/nix_path_env b/nix_path_env deleted file mode 100644 index 19f7cca..0000000 --- a/nix_path_env +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | if [ -z "$NIXOPS_DEPLOYMENT" ]; then | ||
4 | # This will automatically upgrade to latest version at each build | ||
5 | nixpkgs="https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz" | ||
6 | else | ||
7 | nixpkgs="https://releases.nixos.org/nixos/19.03/nixos-19.03.172530.096e2f137b6/nixexprs.tar.xz" | ||
8 | fi | ||
9 | nixpkgsPrevious="$nixpkgs" | ||
10 | nixpkgsNext="$nixpkgs" | ||
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 | } | ||