summary refs log tree commit diff
path: root/pkgs/tools/networking/weighttp/default.nix
blob: 069c040f8ee8456c9123eb960c56744a1f994fa2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchgit, python, libev}:
stdenv.mkDerivation rec {
  name = "weighttp-${version}";
  version = "0.4";

  src = fetchgit {
    url = https://git.lighttpd.net/weighttp.git;
    rev = "refs/tags/weighttp-${version}";
    sha256 = "14yjmdx9p8g8c3zlrx5qid8k156lsagfwhl3ny54162nxjf7kzgr";
  };

  buildInputs = [ python libev ];
  installPhase = ''
    python waf configure --prefix=$out
    python waf build
    python waf install
  '';

  meta = {
    platforms = stdenv.lib.platforms.unix;
  };
}