summary refs log tree commit diff
path: root/pkgs/servers/http/webfs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/http/webfs/default.nix')
-rw-r--r--pkgs/servers/http/webfs/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/servers/http/webfs/default.nix b/pkgs/servers/http/webfs/default.nix
new file mode 100644
index 000000000000..b306c73f4a50
--- /dev/null
+++ b/pkgs/servers/http/webfs/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, openssl, shared_mime_info }:
+stdenv.mkDerivation rec {
+  name = "webfs-${version}";
+  version = "1.21";
+
+  src = fetchurl {
+    url = "https://www.kraxel.org/releases/webfs/${name}.tar.gz";
+    sha256 = "98c1cb93473df08e166e848e549f86402e94a2f727366925b1c54ab31064a62a";
+  };
+
+  patches = [ ./ls.c.patch ];
+
+  buildInputs = [ openssl ];
+
+  makeFlags = [
+    "mimefile=${shared_mime_info}/share/mime/globs"
+    "prefix=$(out)"
+  ];
+
+  meta = with stdenv.lib; {
+    description = "HTTP server for purely static content";
+    homepage    = http://linux.bytesex.org/misc/webfs.html;
+    license     = licenses.gpl2;
+    platforms   = platforms.all;
+    maintainers = with maintainers; [ zimbatm ];
+  };
+}