Unverified Commit f97b9a3b authored by 2kybe3's avatar 2kybe3
Browse files

git-pages-cli: fix update script, use `__structuredAttrs`

r-ryantm tries to update to the new `latest` tag in it's [runs](https://nixpkgs-update-logs.nix-community.org/git-pages-cli/2026-05-02.log)
parent 4b228711
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ buildGoModule (finalAttrs: {
  pname = "git-pages-cli";
  version = "1.8.2";

  __structuredAttrs = true;

  src = fetchFromCodeberg {
    owner = "git-pages";
    repo = "git-pages-cli";
@@ -28,7 +30,12 @@ buildGoModule (finalAttrs: {
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";

  passthru.updateScript = nix-update-script { };
  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "v(.*)"
    ];
  };

  meta = {
    description = "Command-line application for uploading a site to a git-pages server";