1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #218932 from figsoda/miniserve

miniserve: 0.22.0 -> 0.23.0
This commit is contained in:
Mario Rodas 2023-03-01 05:13:02 -05:00 committed by GitHub
commit d55af0bfb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 9 deletions

View file

@ -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";

View file

@ -5241,9 +5241,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 { };