11 rustPlatform.buildRustPackage rec {
12 pname = "static-web-server";
15 src = fetchFromGitHub {
16 owner = "static-web-server";
19 hash = "sha256-PkDT6FU6JSIeeKCJeeIjjqZfoo+tGzqyPyWuIiwusQY=";
22 cargoHash = "sha256-ymI5O6j6NEcgIbMLEYgyUZBBkwxDWDWaVn4hqJScGxA=";
26 url = "https://github.com/static-web-server/static-web-server/pull/466.patch";
27 hash = "sha256-VYSoi6swG4nEFmGKvdEaJ05mJlxaXYsjs8cQai40P4g=";
31 buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
33 # Some tests rely on timestamps newer than 18 Nov 1974 00:00:00
35 find docker/public -exec touch -m {} \;
38 # Need to copy in the systemd units for systemd.packages to discover them
40 install -Dm444 -t $out/lib/systemd/system/ systemd/static-web-server.{service,socket}
44 inherit (nixosTests) static-web-server;
48 description = "Asynchronous web server for static files-serving";
49 homepage = "https://static-web-server.net/";
50 changelog = "https://github.com/static-web-server/static-web-server/blob/v${version}/CHANGELOG.md";
51 license = with licenses; [
55 maintainers = with maintainers; [ figsoda ];
56 mainProgram = "static-web-server";