2016-07-21 01:21:47 +02:00
|
|
|
{ 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";
|
2013-03-29 15:04:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python libev ];
|
|
|
|
installPhase = ''
|
|
|
|
python waf configure --prefix=$out
|
|
|
|
python waf build
|
|
|
|
python waf install
|
|
|
|
'';
|
2016-08-02 18:06:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2013-03-29 15:04:59 +01:00
|
|
|
}
|