From faeb6a374cf12223ef71220fe69c9f6b9813c109 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Sun, 22 Mar 2026 22:04:43 +0300 Subject: [PATCH] simple-http-server: enable TLS by default --- pkgs/by-name/si/simple-http-server/package.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/si/simple-http-server/package.nix b/pkgs/by-name/si/simple-http-server/package.nix index 847ac38eebe1..e206f73c2840 100644 --- a/pkgs/by-name/si/simple-http-server/package.nix +++ b/pkgs/by-name/si/simple-http-server/package.nix @@ -6,6 +6,7 @@ openssl, versionCheckHook, nix-update-script, + withTls ? true, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -23,10 +24,8 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; - - # Currently no tests are implemented, so we avoid building the package twice - doCheck = false; + buildInputs = lib.optional withTls openssl; + buildFeatures = lib.optional withTls "tls"; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ];