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";
|
2024-01-01 09:04:04 +00:00
|
|
|
version = "6.2.4";
|
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}";
|
2024-01-01 09:04:04 +00:00
|
|
|
hash = "sha256-z7vpCUK+NU7xU9sNBlQnSy9sjXD7/m8jSRKfJAgyyN8=";
|
2016-07-19 10:34:51 +00:00
|
|
|
};
|
2023-09-25 03:12:39 +00:00
|
|
|
vendorHash = "sha256-tXEEVEfjoKub2A4m7F3hDc5ABJ+R+axwX1+1j7e3BAM=";
|
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;
|
2024-01-10 00:06:37 +00:00
|
|
|
maintainers = with maintainers; [ avaq np rvolosatovs Br1ght0ne shofius ];
|
2019-11-17 18:46:13 +00:00
|
|
|
license = licenses.bsd3;
|
2016-07-19 10:34:51 +00:00
|
|
|
};
|
|
|
|
}
|