summaryrefslogtreecommitdiff
path: root/pkgs/servers/simple-http-server/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/simple-http-server/default.nix')
-rw-r--r--pkgs/servers/simple-http-server/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/servers/simple-http-server/default.nix b/pkgs/servers/simple-http-server/default.nix
index d93b4664019e..1ecb44aed870 100644
--- a/pkgs/servers/simple-http-server/default.nix
+++ b/pkgs/servers/simple-http-server/default.nix
@@ -1,4 +1,4 @@
-{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }:
+{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "simple-http-server";
@@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
- buildInputs = [ openssl ];
+ buildInputs = if stdenv.isDarwin then [ Security ] else [ openssl ];
# Currently no tests are implemented, so we avoid building the package twice
doCheck = false;