{ lib , makeWrapper , buildGoModule , fetchFromGitHub , gopass }: buildGoModule rec { pname = "git-credential-gopass"; version = "1.15.3"; src = fetchFromGitHub { owner = "gopasspw"; repo = pname; rev = "v${version}"; hash = "sha256-x8hf1cZw+Hhizp8/vA8qJ+A6ERJUenjMeiuW8IFb/N0="; }; vendorHash = "sha256-YZoz7B12/VhWZRTDEVs2P36FrZoZs4OdPJMkR9H7D5I="; 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 ]; }; }