1 { lib, stdenv, fetchFromGitHub, rustPlatform, darwin }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
8 owner = "robertohuertasm";
11 sha256 = "sha256-VgzOdJ1JLe0acjRYvaysCPox5acFmc4VD2f6HZWxT8M=";
14 cargoHash = "sha256-JGsMtlWuww1rYE4w6i2VlyD6gGHqnLehLDZmW57R+Fo=";
16 buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security ]);
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 mainProgram = "microserver";