base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / security / keybase / default.nix
blobb75dd1eb202d747456093ae5688b30c59dd38c28
1 { stdenv, substituteAll, lib, buildGoModule, fetchFromGitHub
2 , AppKit, AVFoundation, AudioToolbox, ImageIO, CoreMedia
3 , Foundation, CoreGraphics, MediaToolbox, gnupg
4 }:
6 buildGoModule rec {
7   pname = "keybase";
8   version = "6.4.0";
10   modRoot = "go";
11   subPackages = [ "kbnm" "keybase" ];
13   dontRenameImports = true;
15   src = fetchFromGitHub {
16     owner = "keybase";
17     repo = "client";
18     rev = "v${version}";
19     hash = "sha256-hRqxA2gPL1UKbz9DwgfZfjE6e5pB7zenZqK+k1i8F2g=";
20   };
21   vendorHash = "sha256-KHahkGzkXr6xp0XY9MyEeeiHnmphaNYi9dPBQ476+us=";
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.hostPlatform.isDarwin [ AppKit 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 = "Keybase official command-line utility and service";
38     platforms = platforms.linux ++ platforms.darwin;
39     maintainers = with maintainers; [ avaq np rvolosatovs Br1ght0ne shofius ryand56 ];
40     license = licenses.bsd3;
41   };