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";
2024-01-01 09:04:04 +00:00
version = "6.2.4";
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}";
2024-01-01 09:04:04 +00:00
hash = "sha256-z7vpCUK+NU7xU9sNBlQnSy9sjXD7/m8jSRKfJAgyyN8=";
};
2023-09-25 03:12:39 +00:00
vendorHash = "sha256-tXEEVEfjoKub2A4m7F3hDc5ABJ+R+axwX1+1j7e3BAM=";
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;
maintainers = with maintainers; [ avaq np rvolosatovs Br1ght0ne shofius ];
license = licenses.bsd3;
};
}