Merge pull request #113273 from maxhbr/add-gopass-jsonapi

This commit is contained in:
Sandro 2021-02-18 12:27:32 +01:00 committed by GitHub
commit a56d4ff21c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 0 deletions

View File

@ -5866,6 +5866,12 @@
githubId = 35892750;
name = "Maxine Aubrey";
};
maxhbr = {
email = "nixos@maxhbr.dev";
github = "maxhbr";
githubId = 1187050;
name = "Maximilian Huber";
};
maxxk = {
email = "maxim.krivchikov@gmail.com";
github = "maxxk";

View File

@ -0,0 +1,43 @@
{ lib
, makeWrapper
, buildGoModule
, fetchFromGitHub
, installShellFiles
, gopass
}:
buildGoModule rec {
pname = "gopass-jsonapi";
version = "1.11.1";
src = fetchFromGitHub {
owner = "gopasspw";
repo = pname;
rev = "v${version}";
sha256 = "03xhza7n92xg12z83as9qdvvc0yx1qy6q0c7i4njvng594f9a8x2";
};
vendorSha256 = "0d4fyppsdfzvmjb0qvpnfnw0vl6z256bly7hfb0whk6rldks60wr";
subPackages = [ "." ];
nativeBuildInputs = [ installShellFiles makeWrapper ];
preBuild = ''
buildFlagsArray+=(
"-ldflags=-s -w -X main.version=${version} -X main.commit=${src.rev}"
)
'';
postFixup = ''
wrapProgram $out/bin/gopass-jsonapi --prefix PATH : "${lib.makeBinPath [ gopass ]}"
'';
meta = with lib; {
description = "Enables communication with gopass via JSON messages";
homepage = "https://www.gopass.pw/";
license = licenses.mit;
maintainers = with maintainers; [ maxhbr ];
platforms = platforms.unix;
};
}

View File

@ -1403,6 +1403,8 @@ in
gopass = callPackage ../tools/security/gopass { };
gopass-jsonapi = callPackage ../tools/security/gopass/jsonapi.nix { };
gospider = callPackage ../tools/security/gospider { };
browserpass = callPackage ../tools/security/browserpass { };