Unverified Commit 6665c740 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

gopass-jsonapi: 1.15.14 -> 1.15.15 (#358760)

parents 04dea6fd 4ca369a0
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
{ lib
, makeWrapper
, buildGoModule
, fetchFromGitHub
, installShellFiles
, gopass
{
  lib,
  stdenv,
  makeWrapper,
  buildGoModule,
  fetchFromGitHub,
  installShellFiles,
  gopass,
  apple-sdk_14,
}:

buildGoModule rec {
  pname = "gopass-jsonapi";
  version = "1.15.14";
  version = "1.15.15";

  src = fetchFromGitHub {
    owner = "gopasspw";
    repo = "gopass-jsonapi";
    rev = "v${version}";
    hash = "sha256-DbfmjgIUqgWVYyPqkcaeE5JKzqElNbrGnx62Fd8v7Hg=";
    hash = "sha256-nayg7NTJH6bAPiguyuN37JivfWkpOUX/xI/+PHDi3UI=";
  };

  vendorHash = "sha256-Aahu0afi6bPnvz/NSZznbp0y9vMJWDj1Bq7tWGRmm7g=";
  vendorHash = "sha256-khX1CdzN+5T8q2hA3NyCxtz7uw9uDd9u61q3UslTtqs=";

  subPackages = [ "." ];

  nativeBuildInputs = [ installShellFiles makeWrapper ];
  nativeBuildInputs = [
    installShellFiles
    makeWrapper
  ];

  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
    # For ScreenCaptureKit.h, see https://github.com/NixOS/nixpkgs/pull/358760#discussion_r1858327365
    apple-sdk_14
  ];

  ldflags = [
    "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}"
    "-s"
    "-w"
    "-X main.version=${version}"
    "-X main.commit=${src.rev}"
  ];

  postFixup = ''
@@ -32,12 +46,15 @@ buildGoModule rec {
      --prefix PATH : "${gopass.wrapperPath}"
  '';

  meta = with lib; {
  meta = {
    description = "Enables communication with gopass via JSON messages";
    homepage = "https://github.com/gopasspw/gopass-jsonapi";
    changelog = "https://github.com/gopasspw/gopass-jsonapi/blob/v${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ maxhbr ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      maxhbr
      doronbehar
    ];
    mainProgram = "gopass-jsonapi";
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -1901,8 +1901,6 @@ with pkgs;
  gopass-hibp = callPackage ../tools/security/gopass/hibp.nix { };
  gopass-jsonapi = callPackage ../tools/security/gopass/jsonapi.nix { };
  git-credential-gopass = callPackage ../tools/security/gopass/git-credential.nix { };
  gopass-summon-provider = callPackage ../tools/security/gopass/summon.nix { };