Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 55 lines 1.0 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 platforms = platforms.linux ++ platforms.darwin; 45 maintainers = with maintainers; [ 46 avaq 47 np 48 rvolosatovs 49 Br1ght0ne 50 shofius 51 ryand56 52 ]; 53 license = licenses.bsd3; 54 }; 55}