at master 56 lines 1.1 kB view raw
1{ 2 replaceVars, 3 lib, 4 buildGoModule, 5 fetchFromGitHub, 6 gnupg, 7}: 8 9buildGoModule rec { 10 pname = "keybase"; 11 version = "6.5.1"; 12 13 modRoot = "go"; 14 subPackages = [ 15 "kbnm" 16 "keybase" 17 ]; 18 19 dontRenameImports = true; 20 21 src = fetchFromGitHub { 22 owner = "keybase"; 23 repo = "client"; 24 rev = "v${version}"; 25 hash = "sha256-B3vedsxQM4FDZVpkMKR67DF7FtaTPhGIJ1e2lViKYzg="; 26 }; 27 vendorHash = "sha256-uw1tiaYoMpMXCYt5bPL5OBbK09PJmAQYQDrDwuPShxU="; 28 29 patches = [ 30 (replaceVars ./fix-paths-keybase.patch { 31 gpg = "${gnupg}/bin/gpg"; 32 gpg2 = "${gnupg}/bin/gpg2"; 33 }) 34 ]; 35 tags = [ "production" ]; 36 ldflags = [ 37 "-s" 38 "-w" 39 ]; 40 41 meta = with lib; { 42 homepage = "https://www.keybase.io/"; 43 description = "Keybase official command-line utility and service"; 44 mainProgram = "keybase"; 45 platforms = platforms.linux ++ platforms.darwin; 46 maintainers = with maintainers; [ 47 avaq 48 np 49 rvolosatovs 50 Br1ght0ne 51 shofius 52 ryand56 53 ]; 54 license = licenses.bsd3; 55 }; 56}