biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / gopass / hibp.nix
blob2a34473b2fb120f117cc1bc1477e9bb7f074b7e5
1 { lib
2 , makeWrapper
3 , buildGoModule
4 , fetchFromGitHub
5 , gopass
6 }:
8 buildGoModule rec {
9   pname = "gopass-hibp";
10   version = "1.15.14";
12   src = fetchFromGitHub {
13     owner = "gopasspw";
14     repo = "gopass-hibp";
15     rev = "v${version}";
16     hash = "sha256-WRYDfz8BK3jJx/XaE9pBd6SvPruwc+tKMWsAv58LXY8=";
17   };
19   vendorHash = "sha256-0Iw1MPKSI0Xon5EarndLJX0aYUJvSu/xeTKAopEIPSw=";
21   subPackages = [ "." ];
23   nativeBuildInputs = [ makeWrapper ];
25   ldflags = [
26     "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}"
27   ];
29   postFixup = ''
30     wrapProgram $out/bin/gopass-hibp \
31       --prefix PATH : "${lib.makeBinPath [ gopass ]}"
32   '';
34   meta = with lib; {
35     description = "Gopass haveibeenpwnd.com integration";
36     homepage = "https://github.com/gopasspw/gopass-hibp";
37     changelog = "https://github.com/gopasspw/gopass-hibp/blob/v${version}/CHANGELOG.md";
38     license = licenses.mit;
39     maintainers = with maintainers; [ sikmir ];
40     mainProgram = "gopass-hibp";
41   };