diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/misc/miniserve/default.nix | 18 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 13 insertions, 9 deletions
diff --git a/pkgs/tools/misc/miniserve/default.nix b/pkgs/tools/misc/miniserve/default.nix index e2d322695449e..24f8be2df49e6 100644 --- a/pkgs/tools/misc/miniserve/default.nix +++ b/pkgs/tools/misc/miniserve/default.nix @@ -3,33 +3,37 @@ , fetchFromGitHub , installShellFiles , stdenv -, Security +, darwin +, curl }: rustPlatform.buildRustPackage rec { pname = "miniserve"; - version = "0.22.0"; + version = "0.23.0"; src = fetchFromGitHub { owner = "svenstaro"; repo = "miniserve"; rev = "v${version}"; - hash = "sha256-pi+dBJE+EqQpyZAkIV7duK1g378J6BgjIiFcjV5H1fQ="; + hash = "sha256-iI9J1BGD7/SDLoJ2WfizAEHUXBJH4DiUbfGingef9lM="; }; - cargoSha256 = "sha256-nRTGKW33NO2vRkvpNVk4pT1DrHPEsSfhwf8y5pJ+n9U="; + cargoSha256 = "sha256-qvV7rJx0Yrv5CLRqSshGf1JUL6nW5KDb7Sv7B6M6WDs="; nativeBuildInputs = [ installShellFiles ]; buildInputs = lib.optionals stdenv.isDarwin [ - Security + darwin.apple_sdk.frameworks.Security + ]; + + nativeCheckInputs = [ + curl ]; checkFlags = [ "--skip=bind_ipv4_ipv6::case_2" - "--skip=cant_navigate_up_the_root" "--skip=qrcode_hidden_in_tty_when_disabled" "--skip=qrcode_shown_in_tty_when_enabled" ]; @@ -44,6 +48,8 @@ rustPlatform.buildRustPackage rec { --zsh <($out/bin/miniserve --print-completions zsh) ''; + __darwinAllowLocalNetworking = true; + meta = with lib; { description = "CLI tool to serve files and directories over HTTP"; homepage = "https://github.com/svenstaro/miniserve"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 615361633af89..4bfac13f7dd50 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5229,9 +5229,7 @@ with pkgs; miniscript = callPackage ../applications/blockchains/miniscript { }; - miniserve = callPackage ../tools/misc/miniserve { - inherit (darwin.apple_sdk.frameworks) Security; - }; + miniserve = callPackage ../tools/misc/miniserve { }; mkspiffs = callPackage ../tools/filesystems/mkspiffs { }; |