Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
872 B
Nix

{
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";
};
}