Skip to content
Snippets Groups Projects
Commit 9b2cd793 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Point NIX_PATH at a source tree containing our desired version of nixpkgs

We can't point it at a Nix expression that evaluates to our desired version of
nixpkgs because certain consumers want it to be a filesystem path instead.
parent d9852965
No related branches found
No related tags found
3 merge requests!140Merge staging into production,!133Merge develop into staging,!131Bounded NIX_PATH
Pipeline #884 passed
...@@ -75,8 +75,15 @@ EOF ...@@ -75,8 +75,15 @@ EOF
# Make sure known_hosts has the host key in it. # Make sure known_hosts has the host key in it.
ssh -o StrictHostKeyChecking=no "$(hostname).$(domainname)" ":" ssh -o StrictHostKeyChecking=no "$(hostname).$(domainname)" ":"
# Set nixpkgs to our preferred version for the morph build. # Set nixpkgs to our preferred version for the morph build. Annoyingly, we
export NIX_PATH="nixpkgs=${CHECKOUT}/nixpkgs-2105.nix" # can't just use nixpkgs-2105.nix as our nixpkgs because some code (in morph,
# at least) wants <nixpkgs> to be a fully-resolved path to a nixpkgs tree.
# For example, morph evaluated `import <nixpkgs/lib>` which would turn into
# something like `import nixpkgs-2105.nix/lib` which is nonsense.
#
# So instead, import our nixpkgs which forces it to be instantiated in the
# store, then ask for its path, then set NIX_PATH to that.
export NIX_PATH="nixpkgs=$(nix eval "(import ${CHECKOUT}/nixpkgs-2105.nix { }).path")"
# Attempt to update just this host. Choose the morph grid definition matching # Attempt to update just this host. Choose the morph grid definition matching
# the grid we belong to and limit the morph deployment update to the host # the grid we belong to and limit the morph deployment update to the host
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment