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