2022-02-10 20:34:41 +00:00
|
|
|
{ stdenv, substituteAll, lib, buildGoModule, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
2022-02-10 20:34:41 +00:00
|
|
|
, Foundation, CoreGraphics, MediaToolbox, gnupg
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "keybase";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "6.2.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
modRoot = "go";
|
|
|
|
subPackages = [ "kbnm" "keybase" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontRenameImports = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keybase";
|
|
|
|
repo = "client";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-k/AMJNXS/gabJMjXdrQltxxc1Bez4VIR/l8RXXpiPWw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-DNTJtgZ2jDuEu4XqxbPTHLh+NR0vU2hcNNcD4amIDk4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths-keybase.patch;
|
|
|
|
gpg = "${gnupg}/bin/gpg";
|
|
|
|
gpg2 = "${gnupg}/bin/gpg2";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
|
2021-08-06 21:57:35 +00:00
|
|
|
tags = [ "production" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.keybase.io/";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "The Keybase official command-line utility and service";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2024-01-13 08:15:51 +00:00
|
|
|
maintainers = with maintainers; [ avaq np rvolosatovs Br1ght0ne shofius ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|