about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/http/mini-httpd/default.nix
blob: d56f83366f9e3cc2ed2d6c6028610adefe0bbfab (plain) (blame)
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
{ lib, stdenv, fetchurl, boost }:

stdenv.mkDerivation rec {
  pname = "mini-httpd";
  version = "1.7";

  src = fetchurl {
    url = "https://download-mirror.savannah.gnu.org/releases/mini-httpd/${pname}-${version}.tar.gz";
    sha256 = "0jggmlaywjfbdljzv5hyiz49plnxh0har2bnc9dq4xmj1pmjgs49";
  };

  buildInputs = [ boost ];

  enableParallelBuilding = true;

  env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ];

  meta = {
    homepage = "http://mini-httpd.nongnu.org/";
    description = "minimalistic high-performance web server";
    license = lib.licenses.gpl3;
    platforms = lib.platforms.linux;
    maintainers = [ lib.maintainers.peti ];
  };
}