git.iko.soy/typeable/nixpkgs
on master help sign in
webfs: init at 1.21
commit6a0ed9361b560ba198fc3d1df7e60cfcf3140f9f authorzimbatm <zimbatm@zimbatm.com> dateSun 15 Nov 2015, 13:09 (11 years ago) parent58d870d
3 files changed+42
pkgs/servers/http/webfs/default.nix+27 pkgs/servers/http/webfs/ls.c.patch+13 pkgs/top-level/all-packages.nix+2
pkgs/servers/http/webfs/default.nixnew file+27
@@ -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+}
pkgs/servers/http/webfs/ls.c.patchnew file+13
@@ -0,0 +1,13 @@
1+# Source: homebrew
2+# https://raw.githubusercontent.com/Homebrew/patches/0518a6d1/webfs/patch-ls.c
3+--- ./ls.c.orig Fri Oct 15 14:20:50 2004
4++++ ./ls.c Fri Oct 15 14:21:13 2004
5+@@ -160,7 +160,7 @@
6+ return buf;
7+ }
8+
9+-#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
10++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__)
11+ static void strmode(mode_t mode, char *dest)
12+ {
13+ static const char *rwx[] = {
pkgs/top-level/all-packages.nix+2
@@ -15351,6 +15351,8 @@ let
1535115351
1535215352 wcalc = callPackage ../applications/misc/wcalc { };
1535315353
15354+ webfs = callPackage ../servers/http/webfs { };
15355+
1535415356 wine = callPackage ../misc/emulators/wine {
1535515357 wineRelease = config.wine.release or "stable";
1535615358 wineBuild = config.wine.build or "wine32";