switch to new nix profile-based installation

This commit is contained in:
Jean-Paul Calderone 2023-07-08 08:14:27 -04:00
parent 454ab223d1
commit 5553019c4e

View File

@ -564,15 +564,12 @@ commands:
# Get cachix for Nix-friendly caching.
name: "Install Basic Dependencies"
command: |
NIXPKGS="https://github.com/nixos/nixpkgs/archive/nixos-23.05.tar.gz"
nix-env \
--file $NIXPKGS \
--install \
-A cachix bash jp
# Activate it for "binary substitution". This sets up
# configuration tht lets Nix download something from the cache
# instead of building it locally, if possible.
cachix use "${CACHIX_NAME}"
NIXPKGS="nixpkgs/nixos-23.05"
nix profile install $NIXPKGS#cachix $NIXPKGS#bash $NIXPKGS#jp
# Activate it for "binary substitution". This sets up
# configuration tht lets Nix download something from the cache
# instead of building it locally, if possible.
cachix use "${CACHIX_NAME}"
- "checkout"