2019-10-17 15:53:45 +02:00
|
|
|
{ stdenv, substituteAll, lib, buildGoPackage, fetchFromGitHub
|
2018-11-07 19:56:56 +01:00
|
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
|
|
|
, Foundation, CoreGraphics, MediaToolbox
|
2019-10-17 15:53:45 +02:00
|
|
|
, gnupg
|
2018-11-07 19:56:56 +01:00
|
|
|
}:
|
2016-07-19 12:34:51 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "keybase";
|
2021-11-03 07:55:24 +01:00
|
|
|
version = "5.8.1";
|
2016-07-19 12:34:51 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/keybase/client";
|
2019-11-21 14:59:27 +01:00
|
|
|
subPackages = [ "go/kbnm" "go/keybase" ];
|
2016-07-19 12:34:51 +02:00
|
|
|
|
|
|
|
dontRenameImports = true;
|
|
|
|
|
2019-07-04 03:32:05 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keybase";
|
|
|
|
repo = "client";
|
|
|
|
rev = "v${version}";
|
2021-11-03 07:55:24 +01:00
|
|
|
sha256 = "sha256-SeBZtrRsWTv5yBBsp18daKCNAr70OalH3shlKf+aiEU=";
|
2016-07-19 12:34:51 +02:00
|
|
|
};
|
|
|
|
|
2019-10-17 15:53:45 +02:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths-keybase.patch;
|
|
|
|
gpg = "${gnupg}/bin/gpg";
|
|
|
|
gpg2 = "${gnupg}/bin/gpg2";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
|
2021-08-05 23:52:34 +02:00
|
|
|
tags = [ "production" ];
|
2016-07-19 12:34:51 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.keybase.io/";
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "The Keybase official command-line utility and service";
|
2017-09-24 18:41:32 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-11-17 12:02:06 +01:00
|
|
|
maintainers = with maintainers; [ avaq carlsverre np rvolosatovs Br1ght0ne ];
|
2019-11-17 19:46:13 +01:00
|
|
|
license = licenses.bsd3;
|
2016-07-19 12:34:51 +02:00
|
|
|
};
|
|
|
|
}
|