2018-11-07 18:56:56 +00:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub, cf-private
|
|
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
|
|
|
, Foundation, CoreGraphics, MediaToolbox
|
|
|
|
}:
|
2016-07-19 11:34:51 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "keybase-${version}";
|
2018-10-11 21:44:43 +01:00
|
|
|
version = "2.7.3";
|
2016-07-19 11:34:51 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/keybase/client";
|
|
|
|
subPackages = [ "go/keybase" ];
|
|
|
|
|
|
|
|
dontRenameImports = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-03-16 01:59:08 +00:00
|
|
|
owner = "keybase";
|
|
|
|
repo = "client";
|
|
|
|
rev = "v${version}";
|
2018-10-11 21:44:43 +01:00
|
|
|
sha256 = "1sw6v3vf544vp8grw8p287cx078mr9v0v1wffcj6f9p9shlwj7ic";
|
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
|
|
|
};
|
|
|
|
}
|