gopass-jsonapi: Use the same gopass' wrapper dependencies

This commit is contained in:
Doron Behar 2023-03-23 11:52:10 +02:00
parent a80835a2b0
commit 0fd8c4fc72
2 changed files with 11 additions and 1 deletions

View file

@ -53,6 +53,9 @@ buildGoModule rec {
--prefix PATH : "${wrapperPath}" \ --prefix PATH : "${wrapperPath}" \
--set GOPASS_NO_REMINDER true --set GOPASS_NO_REMINDER true
''; '';
passthru = {
inherit wrapperPath;
};
meta = with lib; { meta = with lib; {
description = "The slightly more awesome Standard Unix Password Manager for Teams. Written in Go"; description = "The slightly more awesome Standard Unix Password Manager for Teams. Written in Go";

View file

@ -1,7 +1,9 @@
{ lib { lib
, makeWrapper
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, installShellFiles , installShellFiles
, gopass
}: }:
buildGoModule rec { buildGoModule rec {
@ -19,12 +21,17 @@ buildGoModule rec {
subPackages = [ "." ]; subPackages = [ "." ];
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles makeWrapper ];
ldflags = [ ldflags = [
"-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}"
]; ];
postFixup = ''
wrapProgram $out/bin/gopass-jsonapi \
--prefix PATH : "${gopass.wrapperPath}"
'';
meta = with lib; { meta = with lib; {
description = "Enables communication with gopass via JSON messages"; description = "Enables communication with gopass via JSON messages";
homepage = "https://www.gopass.pw/"; homepage = "https://www.gopass.pw/";