at 22.05-pre 24 lines 723 B view raw
1{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "microserver"; 5 version = "0.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "robertohuertasm"; 9 repo = "microserver"; 10 rev = "v${version}"; 11 sha256 = "1bbbdajh74wh2fbidasim2mzmzqjrgi02v8b0g7vbhpdnlim6ixz"; 12 }; 13 14 cargoSha256 = "1wh5riw1fr87wbzbzjnwi5zsc5nflwnp6qcpa8a2js54ncd01n16"; 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}