Skip to content

Commit

Permalink
Recreate only the Idefix cached derivations
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Coiffier committed Nov 18, 2024
1 parent c7422cc commit 2b59d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/etc/env-bigfoot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ function setup_env() {
source /applis/site/nix.sh >/dev/null 2>&1
set -ue

if [ ! -e ~/.nix-cache ]; then
local cache=~/.nix-cache/nix-shell-idefix
if [ ! -e "$cache" ]; then
mkdir -p ~/.nix-cache
local cache=~/.nix-cache/nix-shell-idefix
nix-instantiate --add-root "$cache.drv" --expr 'with import ./scripts/etc/env-bigfoot-nixpkgs.nix; bashInteractive'
nix-store --realise --add-root "$cache" "$cache.drv"
fi
Expand Down

0 comments on commit 2b59d47

Please sign in to comment.