@@ -0,0 +1,31 @@
1+{ lib, stdenv, fetchurl, python2 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "waf-${version}";
5+ version = "1.8.19";
6+
7+ src = fetchurl {
8+ url = "https://waf.io/waf-${version}.tar.bz2";
9+ sha256 = "e5df90556d1f70aca82bb5c5f46aa68d2377bae16b0db044eaa0559df8668c6f";
10+ };
11+
12+ buildInputs = [ python2 ];
13+
14+ configurePhase = ''
15+ python waf-light configure
16+ '';
17+ buildPhase = ''
18+ python waf-light build
19+ '';
20+ installPhase = ''
21+ install waf $out
22+ '';
23+
24+ meta = {
25+ description = "Meta build system";
26+ homepage = "https://waf.io/";
27+ license = lib.licenses.bsd3;
28+ platforms = lib.platforms.all;
29+ maintainers = with lib.maintainers; [ ];
30+ };
31+}