miniserve: 0.12.1 -> 0.13.0

https://github.com/svenstaro/miniserve/releases/tag/v0.13.0

zowoq c4fbc272 96a4f3f9

+12 -4
+12 -4
pkgs/tools/misc/miniserve/default.nix
··· 2 2 , stdenv 3 3 , rustPlatform 4 4 , fetchFromGitHub 5 + , installShellFiles 5 6 , pkg-config 6 7 , zlib 7 8 , libiconv ··· 10 11 11 12 rustPlatform.buildRustPackage rec { 12 13 pname = "miniserve"; 13 - version = "0.12.1"; 14 + version = "0.13.0"; 14 15 15 16 src = fetchFromGitHub { 16 17 owner = "svenstaro"; 17 18 repo = "miniserve"; 18 19 rev = "v${version}"; 19 - sha256 = "sha256-1LyDwQWC8cb3Sq8lZ9eDpZMcu5/yh0BJFuOWQ3iTtpY="; 20 + sha256 = "sha256-1nXhAYvvvUQb0RcWidsRMQOhU8eXt7ngzodsMkYvqvg="; 20 21 }; 21 22 22 - cargoSha256 = "sha256-11aP0/p9wC9o1KuM+CLAuHhZxuYff6nvJPj0/yjb1+E="; 23 + cargoSha256 = "sha256-P5ukE7eXBRJMrc7+T9/TMq2uGs0AuZliHTtoqiZXNZw="; 23 24 24 - nativeBuildInputs = [ pkg-config zlib ]; 25 + nativeBuildInputs = [ installShellFiles pkg-config zlib ]; 25 26 buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ]; 26 27 27 28 checkFlags = [ "--skip=cant_navigate_up_the_root" ]; 29 + 30 + postInstall = '' 31 + installShellCompletion --cmd miniserve \ 32 + --bash <($out/bin/miniserve --print-completions bash) \ 33 + --fish <($out/bin/miniserve --print-completions fish) \ 34 + --zsh <($out/bin/miniserve --print-completions zsh) 35 + ''; 28 36 29 37 meta = with lib; { 30 38 description = "For when you really just want to serve some files over HTTP right now!";