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";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "6.2.2";
|
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}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-1vJCuAkJmehFcVYLwp3UIlQiGji7mHVczCBtXq9Fl68=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-tXEEVEfjoKub2A4m7F3hDc5ABJ+R+axwX1+1j7e3BAM=";
|
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;
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ avaq carlsverre np rvolosatovs Br1ght0ne shofius ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|