libfmvoice: 0-unstable-2024-11-08 -> 0-unstable-2024-12-11 (#364919)
[NixPkgs.git] / pkgs / tools / security / keybase / default.nix
blob44ec908dcf5477719a4612240bcac9c0b00681fc
2   stdenv,
3   substituteAll,
4   lib,
5   buildGoModule,
6   fetchFromGitHub,
7   AppKit,
8   AVFoundation,
9   AudioToolbox,
10   ImageIO,
11   CoreMedia,
12   Foundation,
13   CoreGraphics,
14   MediaToolbox,
15   gnupg,
18 buildGoModule rec {
19   pname = "keybase";
20   version = "6.4.0";
22   modRoot = "go";
23   subPackages = [
24     "kbnm"
25     "keybase"
26   ];
28   dontRenameImports = true;
30   src = fetchFromGitHub {
31     owner = "keybase";
32     repo = "client";
33     rev = "v${version}";
34     hash = "sha256-hRqxA2gPL1UKbz9DwgfZfjE6e5pB7zenZqK+k1i8F2g=";
35   };
36   vendorHash = "sha256-KHahkGzkXr6xp0XY9MyEeeiHnmphaNYi9dPBQ476+us=";
38   patches = [
39     (substituteAll {
40       src = ./fix-paths-keybase.patch;
41       gpg = "${gnupg}/bin/gpg";
42       gpg2 = "${gnupg}/bin/gpg2";
43     })
44   ];
46   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
47     AppKit
48     AVFoundation
49     AudioToolbox
50     ImageIO
51     CoreMedia
52     Foundation
53     CoreGraphics
54     MediaToolbox
55   ];
56   tags = [ "production" ];
57   ldflags = [
58     "-s"
59     "-w"
60   ];
62   meta = with lib; {
63     homepage = "https://www.keybase.io/";
64     description = "Keybase official command-line utility and service";
65     platforms = platforms.linux ++ platforms.darwin;
66     maintainers = with maintainers; [
67       avaq
68       np
69       rvolosatovs
70       Br1ght0ne
71       shofius
72       ryand56
73     ];
74     license = licenses.bsd3;
75   };