{ lib , makeWrapper , buildGoModule , fetchFromGitHub , gopass }: buildGoModule rec { pname = "git-credential-gopass"; version = "1.14.9"; src = fetchFromGitHub { owner = "gopasspw"; repo = pname; rev = "v${version}"; hash = "sha256-ULR/Rbl9wt7Vmb9d46/fVkihz10mlIwKA0tUTSU0PSk="; }; vendorHash = "sha256-7wDDHgLLoSIh/Qojz6cudUBN/HzS+ViZn0IZPRymAfg="; subPackages = [ "." ]; nativeBuildInputs = [ makeWrapper ]; ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" ]; postFixup = '' wrapProgram $out/bin/git-credential-gopass \ --prefix PATH : "${lib.makeBinPath [ gopass ]}" ''; meta = with lib; { description = "Manage git credentials using gopass"; homepage = "https://github.com/gopasspw/git-credential-gopass"; license = licenses.mit; maintainers = with maintainers; [ benneti ]; }; }