2022-01-28 08:49:48 +00:00
|
|
|
{ stdenv, substituteAll, lib, buildGoModule, fetchFromGitHub
|
2018-11-07 18:56:56 +00:00
|
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
2022-01-31 19:22:12 +00:00
|
|
|
, Foundation, CoreGraphics, MediaToolbox, gnupg
|
2018-11-07 18:56:56 +00:00
|
|
|
}:
|
2016-07-19 10:34:51 +00:00
|
|
|
|
2022-01-28 08:49:48 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "keybase";
|
2022-06-11 05:11:27 +00:00
|
|
|
version = "6.0.2";
|
2016-07-19 10:34:51 +00:00
|
|
|
|
2022-01-28 08:49:48 +00:00
|
|
|
modRoot = "go";
|
|
|
|
subPackages = [ "kbnm" "keybase" ];
|
2016-07-19 10:34:51 +00:00
|
|
|
|
|
|
|
dontRenameImports = true;
|
|
|
|
|
2019-07-04 01:32:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keybase";
|
|
|
|
repo = "client";
|
|
|
|
rev = "v${version}";
|
2022-06-11 05:11:27 +00:00
|
|
|
sha256 = "sha256-JiYufEsoj/98An2qKdm/Uu4YHJr6ttc/VHn4kMgkuwI=";
|
2016-07-19 10:34:51 +00:00
|
|
|
};
|
2022-06-11 05:11:27 +00:00
|
|
|
vendorSha256 = "sha256-D8b/pvmBGCnaRuf92FYgRcSSbN59Yu0CHKxAybdYjS4=";
|
2016-07-19 10:34:51 +00:00
|
|
|
|
2019-10-17 13:53:45 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths-keybase.patch;
|
|
|
|
gpg = "${gnupg}/bin/gpg";
|
|
|
|
gpg2 = "${gnupg}/bin/gpg2";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
|
2021-08-05 21:52:34 +00:00
|
|
|
tags = [ "production" ];
|
2022-01-28 08:49:48 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
2016-07-19 10:34:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.keybase.io/";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "The Keybase official command-line utility and service";
|
2017-09-24 16:41:32 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2022-01-28 08:51:06 +00:00
|
|
|
maintainers = with maintainers; [ avaq carlsverre np rvolosatovs Br1ght0ne shofius ];
|
2019-11-17 18:46:13 +00:00
|
|
|
license = licenses.bsd3;
|
2016-07-19 10:34:51 +00:00
|
|
|
};
|
|
|
|
}
|