blob: 7e5a0d357422a014e5f2ade69e30205ffcc94c69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
stdenv,
fetchFromGitHub,
mailcap,
openssl,
}:
stdenv.mkDerivation {
pname = "webfs";
version = "1.21-unstable-2021-02-24";
src = fetchFromGitHub {
owner = "ourway";
repo = "webfsd";
rev = "228affae0774251c6925372d465eb4e648327879";
hash = "sha256-uTo9f66cOKSsIGLUj1E/ywMXT1peekb93UlFBrfkpN0=";
};
buildInputs = [ openssl ];
makeFlags = [
"mimefile=${placeholder "out"}/etc/mime.types"
"prefix=${placeholder "out"}"
"USE_THREADS=yes"
];
postInstall = ''
install -Dm444 -t $out/etc ${mailcap}/etc/mime.types
'';
meta = {
description = "HTTP server for purely static content";
homepage = "http://linux.bytesex.org/misc/webfs.html";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ zimbatm ];
mainProgram = "webfsd";
};
}
|