Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5}: 6 7buildGoModule rec { 8 pname = "qsreplace"; 9 version = "0.0.3"; 10 11 src = fetchFromGitHub { 12 owner = "tomnomnom"; 13 repo = "qsreplace"; 14 rev = "v${version}"; 15 hash = "sha256-j9bqO2gp4RUxZHGBCIxI5nA3nD1dG4nCpJ1i4TM/fbo="; 16 }; 17 18 vendorHash = null; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 ]; 24 25 meta = with lib; { 26 homepage = "https://github.com/tomnomnom/qsreplace"; 27 description = "Accept URLs on stdin, replace all query string values with a user-supplied value"; 28 mainProgram = "qsreplace"; 29 maintainers = with maintainers; [ averagebit ]; 30 platforms = platforms.unix; 31 sourceProvenance = with sourceTypes; [ fromSource ]; 32 license = licenses.mit; 33 }; 34}