nixpkgs-suyu/pkgs/tools/security/keybase/default.nix

36 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, lib, buildGoPackage, fetchFromGitHub, cf-private
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
, Foundation, CoreGraphics, MediaToolbox
}:
buildGoPackage rec {
name = "keybase-${version}";
2018-11-25 02:32:18 +01:00
version = "2.10.1";
goPackagePath = "github.com/keybase/client";
subPackages = [ "go/keybase" ];
dontRenameImports = true;
src = fetchFromGitHub {
2017-03-16 02:59:08 +01:00
owner = "keybase";
repo = "client";
rev = "v${version}";
2018-11-25 02:32:18 +01:00
sha256 = "1gfxnqzs8msxmykg1zrhrrl2slmb29gl7b8s4m2g44zxaj91gfi9";
};
buildInputs = lib.optionals stdenv.isDarwin [
AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox
# Needed for OBJC_CLASS_$_NSData symbols.
cf-private
];
buildFlags = [ "-tags production" ];
meta = with stdenv.lib; {
homepage = https://www.keybase.io/;
description = "The Keybase official command-line utility and service.";
platforms = platforms.linux ++ platforms.darwin;
2017-08-19 21:32:54 +02:00
maintainers = with maintainers; [ carlsverre np rvolosatovs ];
};
}