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