Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 830 B view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5}: 6 7buildGoModule rec { 8 pname = "prox"; 9 # While upstream did release a v1.0.0, v1.1.0 is actually newer: https://github.com/fgrosse/prox/releases/tag/v1.1.0 10 version = "1.1.0"; 11 12 src = fetchFromGitHub { 13 owner = "fgrosse"; 14 repo = "prox"; 15 rev = "v${version}"; 16 hash = "sha256-KSHTlcAmnuU8F17N0LBS0s5b/k6Of0OEHVd3v50bH3g="; 17 }; 18 19 vendorHash = "sha256-i4QJ84Tne1E8s2Fprd5xeWlTQBIb/9tvwws80yHXhbg="; 20 21 postPatch = '' 22 substituteInPlace cmd/prox/version.go \ 23 --replace '0.0.0-unknown' '${version}' 24 ''; 25 26 meta = with lib; { 27 homepage = "https://github.com/fgrosse/prox"; 28 description = "Process runner for Procfile-based applications"; 29 mainProgram = "prox"; 30 license = licenses.bsd2; 31 maintainers = with maintainers; [ lucperkins ]; 32 }; 33}