Files
nixpkgs/pkgs/by-name/ke/keybase/package.nix
2026-08-08 00:06:13 +02:00

59 lines
1.1 KiB
Nix

{
replaceVars,
lib,
buildGoModule,
fetchFromGitHub,
gnupg,
}:
buildGoModule (finalAttrs: {
pname = "keybase";
version = "6.5.1";
modRoot = "go";
subPackages = [
"kbnm"
"keybase"
];
dontRenameImports = true;
src = fetchFromGitHub {
owner = "keybase";
repo = "client";
tag = "v${finalAttrs.version}";
hash = "sha256-B3vedsxQM4FDZVpkMKR67DF7FtaTPhGIJ1e2lViKYzg=";
};
vendorHash = "sha256-uw1tiaYoMpMXCYt5bPL5OBbK09PJmAQYQDrDwuPShxU=";
strictDeps = true;
structuredAttrs = true;
patches = [
(replaceVars ./fix-paths-keybase.patch {
gpg = "${gnupg}/bin/gpg";
gpg2 = "${gnupg}/bin/gpg2";
})
];
tags = [ "production" ];
ldflags = [
"-s"
"-w"
];
meta = {
homepage = "https://www.keybase.io/";
description = "Keybase official command-line utility and service";
mainProgram = "keybase";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = with lib.maintainers; [
avaq
np
rvolosatovs
shofius
ryand56
];
license = lib.licenses.bsd3;
};
})