From ffb8c1c4ec9b77d4acfa9b991d41ffd1f8f2d5a7 Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Thu, 26 Nov 2020 19:23:03 +0100 Subject: microserver: Fix compilation on Darwin --- pkgs/servers/microserver/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgs/servers/microserver') diff --git a/pkgs/servers/microserver/default.nix b/pkgs/servers/microserver/default.nix index 09c64921ec6..618b6f75e7b 100644 --- a/pkgs/servers/microserver/default.nix +++ b/pkgs/servers/microserver/default.nix @@ -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"; -- cgit 1.4.1