tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
webfs: init at 1.21
zimbatm.tngl.sh
10 years ago
6a0ed936
58d870d4
+42
3 changed files
expand all
collapse all
unified
split
pkgs
servers
http
webfs
default.nix
ls.c.patch
top-level
all-packages.nix
+27
pkgs/servers/http/webfs/default.nix
···
1
1
+
{ stdenv, fetchurl, openssl, shared_mime_info }:
2
2
+
stdenv.mkDerivation rec {
3
3
+
name = "webfs-${version}";
4
4
+
version = "1.21";
5
5
+
6
6
+
src = fetchurl {
7
7
+
url = "https://www.kraxel.org/releases/webfs/${name}.tar.gz";
8
8
+
sha256 = "98c1cb93473df08e166e848e549f86402e94a2f727366925b1c54ab31064a62a";
9
9
+
};
10
10
+
11
11
+
patches = [ ./ls.c.patch ];
12
12
+
13
13
+
buildInputs = [ openssl ];
14
14
+
15
15
+
makeFlags = [
16
16
+
"mimefile=${shared_mime_info}/share/mime/globs"
17
17
+
"prefix=$(out)"
18
18
+
];
19
19
+
20
20
+
meta = with stdenv.lib; {
21
21
+
description = "HTTP server for purely static content";
22
22
+
homepage = http://linux.bytesex.org/misc/webfs.html;
23
23
+
license = licenses.gpl2;
24
24
+
platforms = platforms.all;
25
25
+
maintainers = with maintainers; [ zimbatm ];
26
26
+
};
27
27
+
}
+13
pkgs/servers/http/webfs/ls.c.patch
···
1
1
+
# Source: homebrew
2
2
+
# https://raw.githubusercontent.com/Homebrew/patches/0518a6d1/webfs/patch-ls.c
3
3
+
--- ./ls.c.orig Fri Oct 15 14:20:50 2004
4
4
+
+++ ./ls.c Fri Oct 15 14:21:13 2004
5
5
+
@@ -160,7 +160,7 @@
6
6
+
return buf;
7
7
+
}
8
8
+
9
9
+
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
10
10
+
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__)
11
11
+
static void strmode(mode_t mode, char *dest)
12
12
+
{
13
13
+
static const char *rwx[] = {
+2
pkgs/top-level/all-packages.nix
···
15351
15351
15352
15352
wcalc = callPackage ../applications/misc/wcalc { };
15353
15353
15354
15354
+
webfs = callPackage ../servers/http/webfs { };
15355
15355
+
15354
15356
wine = callPackage ../misc/emulators/wine {
15355
15357
wineRelease = config.wine.release or "stable";
15356
15358
wineBuild = config.wine.build or "wine32";