mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
a1dc86d639
Diff: https://github.com/static-web-server/static-web-server/compare/v2.17.0...v2.18.0 Changelog: https://github.com/static-web-server/static-web-server/blob/v2.18.0/CHANGELOG.md
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "static-web-server";
|
|
version = "2.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "static-web-server";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UV4H2M1QMayFxZDeN4+huIE+D9C5XhsCrKdGs77yOi4=";
|
|
};
|
|
|
|
cargoHash = "sha256-PXkKs0Q4IviihzWHob4BTvHLcql+cLLtZvNVt8IgvK0=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
checkFlags = [
|
|
# TODO: investigate why these tests fail
|
|
"--skip=tests::handle_byte_ranges_if_range_too_old"
|
|
"--skip=tests::handle_not_modified"
|
|
"--skip=handle_precondition"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "An asynchronus web server for static files-serving";
|
|
homepage = "https://static-web-server.net/";
|
|
changelog = "https://github.com/static-web-server/static-web-server/blob/v${version}/CHANGELOG.md";
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|