2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, openssl }:
|
2015-11-28 15:22:33 +01:00
|
|
|
let
|
|
|
|
# Let's not pull the whole apache httpd package
|
|
|
|
mime_file = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://raw.githubusercontent.com/apache/httpd/906e419c1f703360e2e8ec077b393347f993884f/docs/conf/mime.types";
|
2015-11-28 15:22:33 +01:00
|
|
|
sha256 = "ef972fc545cbff4c0daa2b2e6b440859693b3c10435ee90f10fa6fffad800c16";
|
|
|
|
};
|
|
|
|
in
|
2015-11-15 13:09:43 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "webfs";
|
2015-11-15 13:09:43 +01:00
|
|
|
version = "1.21";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://www.kraxel.org/releases/webfs/${pname}-${version}.tar.gz";
|
2015-11-15 13:09:43 +01:00
|
|
|
sha256 = "98c1cb93473df08e166e848e549f86402e94a2f727366925b1c54ab31064a62a";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./ls.c.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
makeFlags = [
|
2015-11-28 15:22:33 +01:00
|
|
|
"mimefile=${mime_file}"
|
2015-11-15 13:09:43 +01:00
|
|
|
"prefix=$(out)"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-11-15 13:09:43 +01:00
|
|
|
description = "HTTP server for purely static content";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://linux.bytesex.org/misc/webfs.html";
|
2015-11-15 13:09:43 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
2022-04-01 21:34:55 +02:00
|
|
|
mainProgram = "webfsd";
|
2015-11-15 13:09:43 +01:00
|
|
|
};
|
|
|
|
}
|