Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "microserver"; 9 version = "0.2.1"; 10 11 src = fetchFromGitHub { 12 owner = "robertohuertasm"; 13 repo = "microserver"; 14 rev = "v${version}"; 15 sha256 = "sha256-VgzOdJ1JLe0acjRYvaysCPox5acFmc4VD2f6HZWxT8M="; 16 }; 17 18 cargoHash = "sha256-IPJJ9kv7gf5l7Y2JLCLjkNFao42h/VmkTd3LF5BCMLU="; 19 20 meta = with lib; { 21 homepage = "https://github.com/robertohuertasm/microserver"; 22 description = "Simple ad-hoc server with SPA support"; 23 maintainers = with maintainers; [ flosse ]; 24 license = licenses.mit; 25 mainProgram = "microserver"; 26 }; 27}