aboutsummaryrefslogtreecommitdiff
path: root/nix_path_env
blob: 8e4c84db647a7209f94ee7ceab64913689f2ca54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

if [ -z "$NIXOPS_DEPLOYMENT" ]; then
  # This will automatically upgrade to latest version at each build
  nixpkgs="https://nixos.org/channels/nixos-19.03/nixexprs.tar.xz"
else
  nixpkgs="https://releases.nixos.org/nixos/19.03/nixos-19.03beta171931.3a4ffdd38b5/nixexprs.tar.xz"
fi
nixpkgsPrevious="https://releases.nixos.org/nixos/19.03/nixos-19.03beta171931.3a4ffdd38b5/nixexprs.tar.xz"
nixpkgsNext="$nixpkgs"
export NIX_PATH="nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext:nixpkgsPrevious=$nixpkgsPrevious"