at 24.05-pre 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.2.3"; 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 hash = "sha256-uZIoFivyFqC+AeFTJaEw2BbP7qoOVF8gtSIdUStxsHU="; 20 }; 21 vendorHash = "sha256-tXEEVEfjoKub2A4m7F3hDc5ABJ+R+axwX1+1j7e3BAM="; 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}