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

42 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, substituteAll, lib, buildGoPackage, fetchFromGitHub
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
, Foundation, CoreGraphics, MediaToolbox
, gnupg
}:
buildGoPackage rec {
pname = "keybase";
2020-06-14 18:45:16 +00:00
version = "5.5.1";
goPackagePath = "github.com/keybase/client";
subPackages = [ "go/kbnm" "go/keybase" ];
dontRenameImports = true;
2019-07-04 01:32:05 +00:00
src = fetchFromGitHub {
owner = "keybase";
repo = "client";
rev = "v${version}";
2020-06-14 18:45:16 +00:00
sha256 = "03y69zmzbnfay173xkbzvnhh8zjjd2rfnqmpgr0wvh1psn7mgpsh";
};
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; [ avaq carlsverre np rvolosatovs filalex77 ];
license = licenses.bsd3;
};
}