2016-07-19 10:34:51 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "keybase-${version}";
|
2017-09-19 07:34:35 +00:00
|
|
|
version = "1.0.30";
|
2016-07-19 10:34:51 +00: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}";
|
2017-09-19 07:34:35 +00:00
|
|
|
sha256 = "0vivc71xfi4y3ydd29b17qxzi10r3a1ppmjjws6vrs0gz58bz1j8";
|
2016-07-19 10:34:51 +00:00
|
|
|
};
|
|
|
|
|
2017-09-24 16:41:32 +00:00
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
install_name_tool -delete_rpath $out/lib $bin/bin/keybase
|
|
|
|
'';
|
|
|
|
|
2016-07-19 10:34:51 +00: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 16:41:32 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2017-08-19 19:32:54 +00:00
|
|
|
maintainers = with maintainers; [ carlsverre np rvolosatovs ];
|
2016-07-19 10:34:51 +00:00
|
|
|
};
|
|
|
|
}
|