2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, substituteAll, lib, buildGoPackage, fetchFromGitHub
|
|
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
|
|
|
, Foundation, CoreGraphics, MediaToolbox
|
|
|
|
, gnupg
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "keybase";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "5.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/keybase/client";
|
|
|
|
subPackages = [ "go/kbnm" "go/keybase" ];
|
|
|
|
|
|
|
|
dontRenameImports = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keybase";
|
|
|
|
repo = "client";
|
|
|
|
rev = "v${version}";
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "01k50mank6cdc7q3yd8m7xi8vmyklsqlmz7hw17a35lqcsjzy9zj";
|
2020-04-24 23:36:52 +00: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 ];
|
|
|
|
buildFlags = [ "-tags production" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ avaq carlsverre np rvolosatovs Br1ght0ne ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|