Merge pull request #218932 from figsoda/miniserve

miniserve: 0.22.0 -> 0.23.0

authored by

Mario Rodas and committed by
GitHub
d55af0bf df5d925b

+13 -9
+12 -6
pkgs/tools/misc/miniserve/default.nix
··· 3 3 , fetchFromGitHub 4 4 , installShellFiles 5 5 , stdenv 6 - , Security 6 + , darwin 7 + , curl 7 8 }: 8 9 9 10 rustPlatform.buildRustPackage rec { 10 11 pname = "miniserve"; 11 - version = "0.22.0"; 12 + version = "0.23.0"; 12 13 13 14 src = fetchFromGitHub { 14 15 owner = "svenstaro"; 15 16 repo = "miniserve"; 16 17 rev = "v${version}"; 17 - hash = "sha256-pi+dBJE+EqQpyZAkIV7duK1g378J6BgjIiFcjV5H1fQ="; 18 + hash = "sha256-iI9J1BGD7/SDLoJ2WfizAEHUXBJH4DiUbfGingef9lM="; 18 19 }; 19 20 20 - cargoSha256 = "sha256-nRTGKW33NO2vRkvpNVk4pT1DrHPEsSfhwf8y5pJ+n9U="; 21 + cargoSha256 = "sha256-qvV7rJx0Yrv5CLRqSshGf1JUL6nW5KDb7Sv7B6M6WDs="; 21 22 22 23 nativeBuildInputs = [ 23 24 installShellFiles 24 25 ]; 25 26 26 27 buildInputs = lib.optionals stdenv.isDarwin [ 27 - Security 28 + darwin.apple_sdk.frameworks.Security 29 + ]; 30 + 31 + nativeCheckInputs = [ 32 + curl 28 33 ]; 29 34 30 35 checkFlags = [ 31 36 "--skip=bind_ipv4_ipv6::case_2" 32 - "--skip=cant_navigate_up_the_root" 33 37 "--skip=qrcode_hidden_in_tty_when_disabled" 34 38 "--skip=qrcode_shown_in_tty_when_enabled" 35 39 ]; ··· 43 47 --fish <($out/bin/miniserve --print-completions fish) \ 44 48 --zsh <($out/bin/miniserve --print-completions zsh) 45 49 ''; 50 + 51 + __darwinAllowLocalNetworking = true; 46 52 47 53 meta = with lib; { 48 54 description = "CLI tool to serve files and directories over HTTP";
+1 -3
pkgs/top-level/all-packages.nix
··· 5241 5241 5242 5242 miniscript = callPackage ../applications/blockchains/miniscript { }; 5243 5243 5244 - miniserve = callPackage ../tools/misc/miniserve { 5245 - inherit (darwin.apple_sdk.frameworks) Security; 5246 - }; 5244 + miniserve = callPackage ../tools/misc/miniserve { }; 5247 5245 5248 5246 mkspiffs = callPackage ../tools/filesystems/mkspiffs { }; 5249 5247