2019-07-10 01:30:43 -07:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub
|
2018-11-07 10:56:56 -08:00
|
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
|
|
|
, Foundation, CoreGraphics, MediaToolbox
|
|
|
|
}:
|
2016-07-19 03:34:51 -07:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "keybase-${version}";
|
2019-07-03 18:32:05 -07:00
|
|
|
version = "4.1.0";
|
2016-07-19 03:34:51 -07:00
|
|
|
|
|
|
|
goPackagePath = "github.com/keybase/client";
|
|
|
|
subPackages = [ "go/keybase" ];
|
|
|
|
|
|
|
|
dontRenameImports = true;
|
|
|
|
|
2019-07-03 18:32:05 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keybase";
|
|
|
|
repo = "client";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "00mxyy4jhdbcvbwabf4yvq4h5mpnlfp2z93gy2266kz6gkd5myzk";
|
2016-07-19 03:34:51 -07:00
|
|
|
};
|
|
|
|
|
2019-06-19 10:52:00 -07:00
|
|
|
buildInputs = 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; {
|
|
|
|
homepage = https://www.keybase.io/;
|
|
|
|
description = "The Keybase official command-line utility and service.";
|
2017-09-24 09:41:32 -07:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2017-08-19 12:32:54 -07:00
|
|
|
maintainers = with maintainers; [ carlsverre np rvolosatovs ];
|
2016-07-19 03:34:51 -07:00
|
|
|
};
|
|
|
|
}
|