nix: make dist tarball in nix
All checks were successful
Static / Flake checks (push) Successful in 29s
Static / Create distribution (push) Successful in 55s

This is more sound than having to rely on host nix shell.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-15 17:46:36 +09:00
parent 53cc6e642c
commit baa6520b90
4 changed files with 24 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ jobs:
run: >-
export HAKUREI_REV="$(git rev-parse --short HEAD)" &&
sed -i.old 's/version = /version = "0.0.0-'$HAKUREI_REV'"; # version = /' package.nix &&
nix build --print-out-paths --print-build-logs .#hakurei-static &&
nix build --print-out-paths --print-build-logs .#static &&
mv package.nix.old package.nix &&
echo "rev=$HAKUREI_REV" >> $GITHUB_OUTPUT