about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-30 17:48:11 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-30 17:48:11 +0200
commit0345ec4c5a1523d3794ea8901d28065c5e1f3d20 (patch)
treea996163efa4abb5ff11d08df59b38864d5dbd912
parentfix(common/init): Define `die` function (diff)
downloadflake-templates-0345ec4c5a1523d3794ea8901d28065c5e1f3d20.tar.gz
flake-templates-0345ec4c5a1523d3794ea8901d28065c5e1f3d20.zip
fix(common/init): Set the full path to the `reuse` binary
Currently, only the directory *containing* the `reuse` binary is
specified.
-rw-r--r--common/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/init b/common/init
index 341e04c..2c9c077 100644
--- a/common/init
+++ b/common/init
@@ -171,7 +171,7 @@ chmod +x update.sh
 [ -f ./watch.sh ] && chmod +x build.sh
 
 # Do the first run of reuse annotate
-reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)"
+reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)/bin/reuse"
 [ "$(echo "$reuse" | wc -l)" -ne 1 ] && die "Something is wrong with the nixpkgs#reuse derivation"
 
 git add .