ieda: init at 0-unstable-2024-10-11 (#338769)
[NixPkgs.git] / pkgs / by-name / we / webfs / package.nix
blob02862c43e027563466c6e28d1a2c31b2ffa2b05f
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   mailcap,
6   openssl,
7 }:
9 stdenv.mkDerivation {
10   pname = "webfs";
11   version = "1.21-unstable-2021-02-24";
13   src = fetchFromGitHub {
14     owner = "ourway";
15     repo = "webfsd";
16     rev = "228affae0774251c6925372d465eb4e648327879";
17     hash = "sha256-uTo9f66cOKSsIGLUj1E/ywMXT1peekb93UlFBrfkpN0=";
18   };
20   buildInputs = [ openssl ];
22   makeFlags = [
23     "mimefile=${placeholder "out"}/etc/mime.types"
24     "prefix=${placeholder "out"}"
25     "USE_THREADS=yes"
26   ];
28   postInstall = ''
29     install -Dm444 -t $out/etc ${mailcap}/etc/mime.types
30   '';
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   };