3894ec0a50
all: update from 4.6.0 to 4.7.2 keybase: - added gnupg as a dependency and patch fix-patch-keybase.patch kbfs: - added fuse as a dependency and patch fix-patch-kbfs.patch
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, substituteAll, lib, buildGoPackage, fetchFromGitHub
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
|
, Foundation, CoreGraphics, MediaToolbox
|
|
, gnupg
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "keybase";
|
|
version = "4.7.2";
|
|
|
|
goPackagePath = "github.com/keybase/client";
|
|
subPackages = [ "go/keybase" ];
|
|
|
|
dontRenameImports = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "keybase";
|
|
repo = "client";
|
|
rev = "v${version}";
|
|
sha256 = "1ixfq9qv71misg04fvf4892z956w5aydq0r1wk6qk5jjqp6gf4lv";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-paths-keybase.patch;
|
|
gpg = "${gnupg}/bin/gpg";
|
|
gpg2 = "${gnupg}/bin/gpg2";
|
|
})
|
|
];
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
|
|
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;
|
|
maintainers = with maintainers; [ carlsverre np rvolosatovs ];
|
|
};
|
|
}
|