2019-01-20 23:55:48 +00:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchurl, cf-private
|
2018-11-07 18:56:56 +00:00
|
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
|
|
|
, Foundation, CoreGraphics, MediaToolbox
|
|
|
|
}:
|
2016-07-19 11:34:51 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "keybase-${version}";
|
2019-02-08 01:55:14 +00:00
|
|
|
version = "3.0.0";
|
2016-07-19 11:34:51 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/keybase/client";
|
|
|
|
subPackages = [ "go/keybase" ];
|
|
|
|
|
|
|
|
dontRenameImports = true;
|
|
|
|
|
2019-01-20 23:55:48 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/keybase/client/archive/v${version}.tar.gz";
|
2019-02-08 01:55:14 +00:00
|
|
|
sha256 = "1mxzihgd3qfahlmnfrpbg2kbixbjmkajrl964kaxmihrkx0fylvf";
|
2016-07-19 11:34:51 +01:00
|
|
|
};
|
|
|
|
|
2018-11-07 18:56:56 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox
|
|
|
|
# Needed for OBJC_CLASS_$_NSData symbols.
|
|
|
|
cf-private
|
|
|
|
];
|
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 ];
|
2016-07-19 11:34:51 +01:00
|
|
|
};
|
|
|
|
}
|