microserver: Fix compilation on Darwin

This commit is contained in:
Sandro Jäckel
2020-11-26 19:23:03 +01:00
parent 7a95b9b6ae
commit ffb8c1c4ec

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform }:
{ stdenv, fetchFromGitHub, rustPlatform, darwin }:
rustPlatform.buildRustPackage rec {
pname = "microserver";
@@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0cyxa200iz7knkma4zi3mzky3g0kibbxd5303psk2rl2rppir0f7";
buildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security ]);
meta = with stdenv.lib; {
homepage = "https://github.com/robertohuertasm/microserver";
description = "Simple ad-hoc server with SPA support";