mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 10:31:36 +00:00
2258b21e4b
Build-tested on x86_64 Linux and on Darwin.
23 lines
505 B
Nix
23 lines
505 B
Nix
{ 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;
|
|
};
|
|
}
|