diff --git a/packages/gitea-projects-api.nix b/packages/gitea-projects-api.nix index 6b2c20b..b188c48 100644 --- a/packages/gitea-projects-api.nix +++ b/packages/gitea-projects-api.nix @@ -106,7 +106,14 @@ buildGoModule { "-s" "-w" "-X main.Version=${version}" - "-X 'main.Tags=${lib.concatStringsSep " " (lib.optionals sqliteSupport [ "sqlite" "sqlite_unlock_notify" ])}'" + "-X 'main.Tags=${ + lib.concatStringsSep " " ( + lib.optionals sqliteSupport [ + "sqlite" + "sqlite_unlock_notify" + ] + ) + }'" ]; postInstall = '' @@ -130,7 +137,12 @@ buildGoModule { passthru = { # Expose hashes nix-update needs to find when iterating. - pnpmDeps = frontend.pnpmDeps; + inherit (frontend) pnpmDeps; + + # Custom update flow: refresh hashes + retag the gitea fork + push. + # Invoke with `nix-update --use-update-script gitea-projects-api` or + # `just gitea-update` (which passes `--use-update-script`). + updateScript = ../scripts/update-gitea-projects-api.sh; }; meta = {