@@ -0,0 +1,27 @@
1+{ stdenv, fetchurl, openssl, shared_mime_info }:
2+stdenv.mkDerivation rec {
3+ name = "webfs-${version}";
4+ version = "1.21";
5+
6+ src = fetchurl {
7+ url = "https://www.kraxel.org/releases/webfs/${name}.tar.gz";
8+ sha256 = "98c1cb93473df08e166e848e549f86402e94a2f727366925b1c54ab31064a62a";
9+ };
10+
11+ patches = [ ./ls.c.patch ];
12+
13+ buildInputs = [ openssl ];
14+
15+ makeFlags = [
16+ "mimefile=${shared_mime_info}/share/mime/globs"
17+ "prefix=$(out)"
18+ ];
19+
20+ meta = with stdenv.lib; {
21+ description = "HTTP server for purely static content";
22+ homepage = http://linux.bytesex.org/misc/webfs.html;
23+ license = licenses.gpl2;
24+ platforms = platforms.all;
25+ maintainers = with maintainers; [ zimbatm ];
26+ };
27+}