python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / keybase / default.nix
blobafc2eadb63fc26d0c25b5771a6784419649aefa2
1 { stdenv, substituteAll, lib, buildGoModule, fetchFromGitHub
2 , AVFoundation, AudioToolbox, ImageIO, CoreMedia
3 , Foundation, CoreGraphics, MediaToolbox, gnupg
4 }:
6 buildGoModule rec {
7   pname = "keybase";
8   version = "6.0.2";
10   modRoot = "go";
11   subPackages = [ "kbnm" "keybase" ];
13   dontRenameImports = true;
15   src = fetchFromGitHub {
16     owner = "keybase";
17     repo = "client";
18     rev = "v${version}";
19     sha256 = "sha256-JiYufEsoj/98An2qKdm/Uu4YHJr6ttc/VHn4kMgkuwI=";
20   };
21   vendorSha256 = "sha256-D8b/pvmBGCnaRuf92FYgRcSSbN59Yu0CHKxAybdYjS4=";
23   patches = [
24     (substituteAll {
25       src = ./fix-paths-keybase.patch;
26       gpg = "${gnupg}/bin/gpg";
27       gpg2 = "${gnupg}/bin/gpg2";
28     })
29   ];
31   buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
32   tags = [ "production" ];
33   ldflags = [ "-s" "-w" ];
35   meta = with lib; {
36     homepage = "https://www.keybase.io/";
37     description = "The Keybase official command-line utility and service";
38     platforms = platforms.linux ++ platforms.darwin;
39     maintainers = with maintainers; [ avaq carlsverre np rvolosatovs Br1ght0ne shofius ];
40     license = licenses.bsd3;
41   };