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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.2 KiB
Nix
Raw Normal View History

2022-01-28 08:49:48 +00:00
{ stdenv, substituteAll, lib, buildGoModule, fetchFromGitHub
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
2022-01-31 19:22:12 +00:00
, Foundation, CoreGraphics, MediaToolbox, gnupg
}:
2022-01-28 08:49:48 +00:00
buildGoModule rec {
pname = "keybase";
version = "6.0.2";
2022-01-28 08:49:48 +00:00
modRoot = "go";
subPackages = [ "kbnm" "keybase" ];
dontRenameImports = true;
2019-07-04 01:32:05 +00:00
src = fetchFromGitHub {
owner = "keybase";
repo = "client";
rev = "v${version}";
sha256 = "sha256-JiYufEsoj/98An2qKdm/Uu4YHJr6ttc/VHn4kMgkuwI=";
};
vendorSha256 = "sha256-D8b/pvmBGCnaRuf92FYgRcSSbN59Yu0CHKxAybdYjS4=";
patches = [
(substituteAll {
src = ./fix-paths-keybase.patch;
gpg = "${gnupg}/bin/gpg";
gpg2 = "${gnupg}/bin/gpg2";
})
];
2021-01-15 09:19:50 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ];
2021-08-05 21:52:34 +00:00
tags = [ "production" ];
2022-01-28 08:49:48 +00:00
ldflags = [ "-s" "-w" ];
meta = with lib; {
homepage = "https://www.keybase.io/";
description = "The Keybase official command-line utility and service";
platforms = platforms.linux ++ platforms.darwin;
2022-01-28 08:51:06 +00:00
maintainers = with maintainers; [ avaq carlsverre np rvolosatovs Br1ght0ne shofius ];
license = licenses.bsd3;
};
}