{ lib , makeWrapper , buildGoModule , fetchFromGitHub , gopass }: buildGoModule rec { pname = "gopass-summon-provider"; version = "1.15.13"; src = fetchFromGitHub { owner = "gopasspw"; repo = "gopass-summon-provider"; rev = "v${version}"; hash = "sha256-cYr9yk5AyTxEo+bO6TgBBZRDWsTR+lvGcCr4kF1aMik="; }; vendorHash = "sha256-s1Zouw1619DbGjnZY26N6En91lzDaeDRZmul/te2z7M="; subPackages = [ "." ]; nativeBuildInputs = [ makeWrapper ]; ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" ]; postFixup = '' wrapProgram $out/bin/gopass-summon-provider \ --prefix PATH : "${lib.makeBinPath [ gopass ]}" ''; meta = with lib; { description = "Gopass Summon Provider"; homepage = "https://github.com/gopasspw/gopass-summon-provider"; changelog = "https://github.com/gopasspw/gopass-summon-provider/blob/v${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ sikmir ]; mainProgram = "gopass-summon-provider"; }; }