11 buildGo121Module rec {
12 pname = "static-server";
15 src = fetchFromGitHub {
17 repo = "static-server";
19 hash = "sha256-AZcNh/kF6IdAceA7qe+nhRlwU4yGh19av/S1Zt7iKIs=";
22 vendorHash = "sha256-1p3dCLLo+MTPxf/Y3zjxTagUi+tq7nZSj4ZB/aakJGY=";
25 # patch out debug.ReadBuidlInfo since version information is not available with buildGoModule
27 src = ./version.patch;
36 ldflags = [ "-s" "-w" ];
38 # tests sometimes fail with SIGQUIT on darwin
39 doCheck = !stdenv.isDarwin;
42 version = testers.testVersion {
43 package = static-server;
47 __darwinAllowLocalNetworking = true;
50 description = "A simple, zero-configuration HTTP server CLI for serving static files";
51 homepage = "https://github.com/eliben/static-server";
52 license = licenses.unlicense;
53 maintainers = with maintainers; [ figsoda ];
54 mainProgram = "static-server";