nixpkgs-suyu/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";
2021-11-03 07:55:24 +01:00
version = "5.8.1";
goPackagePath = "github.com/keybase/client";
subPackages = [ "go/kbnm" "go/keybase" ];
dontRenameImports = true;
2019-07-04 03:32:05 +02:00
src = fetchFromGitHub {
owner = "keybase";
repo = "client";
rev = "v${version}";
2021-11-03 07:55:24 +01:00
sha256 = "sha256-SeBZtrRsWTv5yBBsp18daKCNAr70OalH3shlKf+aiEU=";
};
patches = [
(substituteAll {
src = ./fix-paths-keybase.patch;
gpg = "${gnupg}/bin/gpg";
gpg2 = "${gnupg}/bin/gpg2";
})
];
2021-01-15 10:19:50 +01:00
buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
2021-08-05 23:52:34 +02:00
tags = [ "production" ];
meta = with 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 Br1ght0ne ];
license = licenses.bsd3;
};
}