mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
static-web-server: init at 2.14.1
This commit is contained in:
parent
017c0ef738
commit
8c1dd61cf8
2 changed files with 36 additions and 0 deletions
34
pkgs/servers/static-web-server/default.nix
Normal file
34
pkgs/servers/static-web-server/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "static-web-server";
|
||||
version = "2.14.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "static-web-server";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1x9l39yf65a8ji8x84h583s82hlj6s99gj0fsm4sh2l4i8yrq2yb";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-Ox1mHjeBprxmuqPIVxeTXDyFcEuipSJ7UjXZjcLElIs=";
|
||||
|
||||
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://sws.joseluisq.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 ];
|
||||
};
|
||||
}
|
|
@ -24741,6 +24741,8 @@ with pkgs;
|
|||
|
||||
thttpd = callPackage ../servers/http/thttpd { };
|
||||
|
||||
static-web-server = callPackage ../servers/static-web-server { };
|
||||
|
||||
storm = callPackage ../servers/computing/storm { };
|
||||
|
||||
surrealdb = callPackage ../servers/nosql/surrealdb {
|
||||
|
|
Loading…
Reference in a new issue