miniserve: 0.12.1 -> 0.13.0

https://github.com/svenstaro/miniserve/releases/tag/v0.13.0
This commit is contained in:
zowoq 2021-03-29 16:30:54 +10:00
parent 96a4f3f97c
commit c4fbc272a7

View file

@ -2,6 +2,7 @@
, stdenv , stdenv
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, installShellFiles
, pkg-config , pkg-config
, zlib , zlib
, libiconv , libiconv
@ -10,22 +11,29 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "miniserve"; pname = "miniserve";
version = "0.12.1"; version = "0.13.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "svenstaro"; owner = "svenstaro";
repo = "miniserve"; repo = "miniserve";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-1LyDwQWC8cb3Sq8lZ9eDpZMcu5/yh0BJFuOWQ3iTtpY="; sha256 = "sha256-1nXhAYvvvUQb0RcWidsRMQOhU8eXt7ngzodsMkYvqvg=";
}; };
cargoSha256 = "sha256-11aP0/p9wC9o1KuM+CLAuHhZxuYff6nvJPj0/yjb1+E="; cargoSha256 = "sha256-P5ukE7eXBRJMrc7+T9/TMq2uGs0AuZliHTtoqiZXNZw=";
nativeBuildInputs = [ pkg-config zlib ]; nativeBuildInputs = [ installShellFiles pkg-config zlib ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
checkFlags = [ "--skip=cant_navigate_up_the_root" ]; checkFlags = [ "--skip=cant_navigate_up_the_root" ];
postInstall = ''
installShellCompletion --cmd miniserve \
--bash <($out/bin/miniserve --print-completions bash) \
--fish <($out/bin/miniserve --print-completions fish) \
--zsh <($out/bin/miniserve --print-completions zsh)
'';
meta = with lib; { meta = with lib; {
description = "For when you really just want to serve some files over HTTP right now!"; description = "For when you really just want to serve some files over HTTP right now!";
homepage = "https://github.com/svenstaro/miniserve"; homepage = "https://github.com/svenstaro/miniserve";