nixpkgs/pkgs/tools/security/gopass/hibp.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
856 B
Nix
Raw Normal View History

2022-06-25 14:59:41 +00:00
{ lib
, makeWrapper
, buildGoModule
, fetchFromGitHub
, gopass
}:
buildGoModule rec {
pname = "gopass-hibp";
2023-04-19 05:14:04 +00:00
version = "1.15.5";
2022-06-25 14:59:41 +00:00
src = fetchFromGitHub {
owner = "gopasspw";
2023-02-13 19:51:51 +00:00
repo = "gopass-hibp";
2022-06-25 14:59:41 +00:00
rev = "v${version}";
2023-04-19 05:14:04 +00:00
hash = "sha256-BHMhQqaYM0WfCzvDo7X1GEVNv44zEw2KeA9jhF7RgC4=";
2022-06-25 14:59:41 +00:00
};
2023-04-19 05:14:04 +00:00
vendorHash = "sha256-Y6BMzSRzbORIbebfP+ptIswyOclM1bs1zPmLpqko//4=";
2022-06-25 14:59:41 +00:00
subPackages = [ "." ];
nativeBuildInputs = [ makeWrapper ];
ldflags = [
"-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}"
];
postFixup = ''
2022-09-21 04:24:02 +00:00
wrapProgram $out/bin/gopass-hibp \
--prefix PATH : "${lib.makeBinPath [ gopass ]}"
2022-06-25 14:59:41 +00:00
'';
meta = with lib; {
description = "Gopass haveibeenpwnd.com integration";
homepage = "https://www.gopass.pw/";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
};
}