Unverified Commit 9f208a0d authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

cliqr: add nix-update-script hook, switch to finalAttr (#388781)

parents 4b6d361a f361bde7
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -2,16 +2,17 @@
  lib,
  buildGoModule,
  fetchFromGitHub,
  nix-update-script,
}:

buildGoModule rec {
buildGoModule (finalAttrs: {
  pname = "cliqr";
  version = "0.1.26";

  src = fetchFromGitHub {
    owner = "paepckehh";
    repo = "cliqr";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-JM5sWVby8dSFz2YtNXgU9z5fc6EI5nnxmpQN/71kdjI=";
  };

@@ -22,12 +23,14 @@ buildGoModule rec {
    "-w"
  ];

  passthru.updateScript = nix-update-script { };

  meta = {
    changelog = "https://github.com/paepckehh/cliqr/releases/tag/v${version}";
    changelog = "https://github.com/paepckehh/cliqr/releases/tag/v${finalAttrs.version}";
    homepage = "https://paepcke.de/cliqr";
    description = "Transfer, share data & secrets via console qr codes";
    license = lib.licenses.bsd3;
    mainProgram = "cliqr";
    maintainers = with lib.maintainers; [ paepcke ];
  };
}
})