{ lib , makeWrapper , buildGoModule , fetchFromGitHub , gopass }: buildGoModule rec { pname = "gopass-summon-provider"; version = "1.14.11"; src = fetchFromGitHub { owner = "gopasspw"; repo = pname; rev = "v${version}"; hash = "sha256-UHho7obnpAYgtw269A07gKPgZawNeY4/bzXv1kGvgVw="; }; vendorHash = "sha256-6GRK1M358LC6S/sjiN42+whz1Z3S+PRKyPOZr8n+daQ="; 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://www.gopass.pw/"; license = licenses.mit; maintainers = with maintainers; [ sikmir ]; }; }