2019-10-17 14:53:45 +01:00
|
|
|
{ stdenv, substituteAll, lib, buildGoPackage, fetchFromGitHub
|
2018-11-07 18:56:56 +00:00
|
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
|
|
|
, Foundation, CoreGraphics, MediaToolbox
|
2019-10-17 14:53:45 +01:00
|
|
|
, gnupg
|
2018-11-07 18:56:56 +00:00
|
|
|
}:
|
2016-07-19 11:34:51 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "keybase";
|
2019-11-16 00:47:47 +00:00
|
|
|
version = "5.0.0";
|
2016-07-19 11:34:51 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/keybase/client";
|
|
|
|
subPackages = [ "go/keybase" ];
|
|
|
|
|
|
|
|
dontRenameImports = true;
|
|
|
|
|
2019-07-04 02:32:05 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keybase";
|
|
|
|
repo = "client";
|
|
|
|
rev = "v${version}";
|
2019-11-16 00:47:47 +00:00
|
|
|
sha256 = "0cxxqmgp82qi2b1fljyfa38is94y8ghb2pd31nbyh8y4wnmi0x1s";
|
2016-07-19 11:34:51 +01:00
|
|
|
};
|
|
|
|
|
2019-10-17 14:53:45 +01: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 11:34:51 +01:00
|
|
|
buildFlags = [ "-tags production" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.keybase.io/;
|
|
|
|
description = "The Keybase official command-line utility and service.";
|
2017-09-24 17:41:32 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2017-08-19 20:32:54 +01:00
|
|
|
maintainers = with maintainers; [ carlsverre np rvolosatovs ];
|
2019-11-17 18:46:13 +00:00
|
|
|
license = licenses.bsd3;
|
2016-07-19 11:34:51 +01:00
|
|
|
};
|
|
|
|
}
|