From 5553019c4ec6c99eeec7c100b37f1da689fd7ea0 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Sat, 8 Jul 2023 08:14:27 -0400 Subject: [PATCH] switch to new `nix profile`-based installation --- .circleci/config.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6b19bdfd5..d8a70b2c4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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"