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