nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 42 lines 1.2 kB view raw
1{ stdenv, substituteAll, lib, buildGoModule, fetchFromGitHub 2, AVFoundation, AudioToolbox, ImageIO, CoreMedia 3, Foundation, CoreGraphics, MediaToolbox, gnupg 4}: 5 6buildGoModule rec { 7 pname = "keybase"; 8 version = "6.0.2"; 9 10 modRoot = "go"; 11 subPackages = [ "kbnm" "keybase" ]; 12 13 dontRenameImports = true; 14 15 src = fetchFromGitHub { 16 owner = "keybase"; 17 repo = "client"; 18 rev = "v${version}"; 19 sha256 = "sha256-JiYufEsoj/98An2qKdm/Uu4YHJr6ttc/VHn4kMgkuwI="; 20 }; 21 vendorSha256 = "sha256-D8b/pvmBGCnaRuf92FYgRcSSbN59Yu0CHKxAybdYjS4="; 22 23 patches = [ 24 (substituteAll { 25 src = ./fix-paths-keybase.patch; 26 gpg = "${gnupg}/bin/gpg"; 27 gpg2 = "${gnupg}/bin/gpg2"; 28 }) 29 ]; 30 31 buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ]; 32 tags = [ "production" ]; 33 ldflags = [ "-s" "-w" ]; 34 35 meta = with lib; { 36 homepage = "https://www.keybase.io/"; 37 description = "The Keybase official command-line utility and service"; 38 platforms = platforms.linux ++ platforms.darwin; 39 maintainers = with maintainers; [ avaq carlsverre np rvolosatovs Br1ght0ne shofius ]; 40 license = licenses.bsd3; 41 }; 42}