aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/unflake.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-19 17:47:51 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-19 17:47:51 +0200
commit7e2e4de1a42e37234cf5d5a692573a8426bec4ca (patch)
treed33b2db75ed555e0184f7d9ae2f843f96ebffe63 /scripts/unflake.sh
parentmodules/direnv/pre-cache: Also use the nixpkgs rev as cache key (diff)
downloadnixos-config-7e2e4de1a42e37234cf5d5a692573a8426bec4ca.zip
treewide: Switch to bare unflakeHEADprime
There was no real reason to still have `npins` around. I just kept it because of historical reasons.
Diffstat (limited to 'scripts/unflake.sh')
-rwxr-xr-xscripts/unflake.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/unflake.sh b/scripts/unflake.sh
index 2404260a..f916759a 100755
--- a/scripts/unflake.sh
+++ b/scripts/unflake.sh
@@ -2,20 +2,6 @@
set -e
-# HACK(@bpeetz): unflake doesn't support npins version 8 yet, so we pretend to still use
-# version 7.
-# Essentially, we are abusing the fact that `npins` will look at `NPINS_DIRECTORY` while
-# unflake doesn't.
-# <2026-06-13>
-NPINS_DIRECTORY="$(mktemp -t "npins_fake_dir_for_unflake_XXXXX" -d)"
-export NPINS_DIRECTORY
-
-mv npins/sources.json "$NPINS_DIRECTORY/"
-jq '.version = 7' <"$NPINS_DIRECTORY/sources.json" >npins/sources.json
-
NIX_CONFIG="pure-eval = false" nix run -f https://codeberg.org/goldstein/unflake/archive/main.tar.gz unflake -- "$@"
-mv "$NPINS_DIRECTORY/sources.json" npins/sources.json
-rmdir "$NPINS_DIRECTORY"
-
# vim: ft=sh