Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "git-pr"; 9 version = "0.3.0"; 10 11 src = fetchFromGitHub { 12 owner = "picosh"; 13 repo = "git-pr"; 14 rev = "v${version}"; 15 hash = "sha256-2A2rP7yr8faVoIYAWprr+t7MwDPerhsuOjWWEl1mhXw="; 16 }; 17 18 vendorHash = "sha256-7aHr5CWZVmhBiuCXaK49zYJXMufCxZBnS917mF0QJlg="; 19 20 subPackages = [ 21 "cmd/ssh" 22 "cmd/web" 23 ]; 24 25 env.CGO_ENABLED = 0; 26 27 ldflags = [ 28 "-s" 29 "-w" 30 ]; 31 32 postInstall = '' 33 mv $out/bin/ssh $out/bin/git-ssh 34 mv $out/bin/web $out/bin/git-web 35 ''; 36 37 meta = { 38 homepage = "https://pr.pico.sh"; 39 description = "Simple git collaboration tool"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ 42 sigmanificient 43 jolheiser 44 ]; 45 mainProgram = "git-ssh"; 46 }; 47}