summaryrefslogtreecommitdiff
path: root/nix_path_env
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-12-13 21:25:24 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-24 01:40:13 +0200
commit24fd1fe6c62b7a9fc347794fde043285da272f5c (patch)
tree65557bf1d241ca389b619dbd24d18d51932ee030 /nix_path_env
downloadNUR-24fd1fe6c62b7a9fc347794fde043285da272f5c.tar.gz
NUR-24fd1fe6c62b7a9fc347794fde043285da272f5c.tar.zst
NUR-24fd1fe6c62b7a9fc347794fde043285da272f5c.zip
Initial commit published for NUR
Diffstat (limited to 'nix_path_env')
-rw-r--r--nix_path_env11
1 files changed, 11 insertions, 0 deletions
diff --git a/nix_path_env b/nix_path_env
new file mode 100644
index 00000000..901cd693
--- /dev/null
+++ b/nix_path_env
@@ -0,0 +1,11 @@
1#!/bin/bash
2
3if [ -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"
6else
7 nixpkgs="https://releases.nixos.org/nixos/19.03/nixos-19.03.172530.096e2f137b6/nixexprs.tar.xz"
8fi
9nixpkgsPrevious="$nixpkgs"
10nixpkgsNext="$nixpkgs"
11export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious"