1 { stdenv, substituteAll, lib, buildGoModule, fetchFromGitHub
2 , AppKit, AVFoundation, AudioToolbox, ImageIO, CoreMedia
3 , Foundation, CoreGraphics, MediaToolbox, gnupg
11 subPackages = [ "kbnm" "keybase" ];
13 dontRenameImports = true;
15 src = fetchFromGitHub {
19 hash = "sha256-hRqxA2gPL1UKbz9DwgfZfjE6e5pB7zenZqK+k1i8F2g=";
21 vendorHash = "sha256-KHahkGzkXr6xp0XY9MyEeeiHnmphaNYi9dPBQ476+us=";
25 src = ./fix-paths-keybase.patch;
26 gpg = "${gnupg}/bin/gpg";
27 gpg2 = "${gnupg}/bin/gpg2";
31 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ AppKit AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
32 tags = [ "production" ];
33 ldflags = [ "-s" "-w" ];
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;