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";
2022-02-18 12:34:44 +00:00
version = "5.9.3";
2022-01-28 08:49:48 +00:00
modRoot = "go";
subPackages = [ "kbnm" "keybase" ];
dontRenameImports = true;
2019-07-04 02:32:05 +01:00
src = fetchFromGitHub {
owner = "keybase";
repo = "client";
rev = "v${version}";
2022-02-18 12:34:44 +00:00
sha256 = "sha256-vPQ1hBd33DwsW0b79kNH1yd7mrwkoftIYFgmMVxC+78=";
};
2022-02-02 23:35:23 +00:00
vendorSha256 = "sha256-ckAnSSSEF00gbgxnPAi2Pi8TNu3nmAahK7TP6HnfmNo=";
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 22:52:34 +01: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;
};
}