zowoq 2021-09-01 07:28:13 +10:00
parent 50cf24e37f
commit ca831be54c

View file

@ -11,21 +11,24 @@
rustPlatform.buildRustPackage rec {
pname = "miniserve";
version = "0.15.0";
version = "0.17.0";
src = fetchFromGitHub {
owner = "svenstaro";
repo = "miniserve";
rev = "v${version}";
sha256 = "sha256-hcGpd23CM5r8tq7Wyf4/aJwTCVJ9POmZJHZvIdcF4Qg=";
sha256 = "sha256-DqH/6Uu4L0fWbnGX8s3jCGwBgPE2PLIkS/dZIj+BA9Q=";
};
cargoSha256 = "sha256-TnafvDbCZhIDnjGJThgYnwFs6O6/RvKFsll3gUh2mjQ=";
cargoSha256 = "sha256-LgdVO41e56DIRkky1aF0X80ixs7ZH93Qk9Yx67vkO9E=";
nativeBuildInputs = [ installShellFiles pkg-config zlib ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
checkFlags = [ "--skip=cant_navigate_up_the_root" ];
checkFlags = [
"--skip=bind_ipv4_ipv6::case_2"
"--skip=cant_navigate_up_the_root"
];
postInstall = ''
installShellCompletion --cmd miniserve \