treewide: use wafHook
Replace "waf" phases with wafHook that manages everything automatically. Should make things more modular. Packages affected here are: - a2jmidid - ams-lv2 - ardour - fomp - guitarix - ingen - jalv - mda-lv2 - non - patchage - hamster-time-tracker - kupfer - xiphos - xfce4-dockbarx-plugin - xfce4-namebar-plugin - dropbox - clasp - aubio - liliv - lv2 - lvtk - ntk - raul - sratom - suil - ganv - ndn-cxx - ns3 - serd - sord - termbox - wxmupen64plus - jackaudio - pflask - blockhash - glmark2 - weighttp
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, python
|
||||
, wafHook
|
||||
|
||||
# for binding generation
|
||||
, castxml ? null
|
||||
@@ -50,6 +51,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "17kzfjpgw2mvyx1c9bxccnvw67jpk09fxmcnlkqx9xisk10qnhng";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ wafHook ];
|
||||
# ncurses is a hidden dependency of waf when checking python
|
||||
buildInputs = lib.optionals generateBindings [ castxml ncurses ]
|
||||
++ stdenv.lib.optional enableDoxygen [ doxygen graphviz imagemagick ]
|
||||
@@ -58,12 +60,9 @@ stdenv.mkDerivation rec {
|
||||
propagatedBuildInputs = [ gcc6 pythonEnv ];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ./waf
|
||||
patchShebangs doc/ns3_html_theme/get_version.sh
|
||||
'';
|
||||
|
||||
configureScript = "${python.interpreter} ./waf configure";
|
||||
|
||||
configureFlags = with stdenv.lib; [
|
||||
"--enable-modules=${stdenv.lib.concatStringsSep "," modules}"
|
||||
"--with-python=${pythonEnv.interpreter}"
|
||||
@@ -74,12 +73,9 @@ stdenv.mkDerivation rec {
|
||||
++ optional doCheck " --enable-tests "
|
||||
;
|
||||
|
||||
postBuild = with stdenv.lib; let flags = concatStringsSep ";" (
|
||||
optional enableDoxygen "./waf doxygen"
|
||||
++ optional withManual "./waf sphinx"
|
||||
);
|
||||
in "${flags}"
|
||||
;
|
||||
buildTargets = "build"
|
||||
+ lib.optionalString enableDoxygen " doxygen"
|
||||
+ lib.optionalString withManual "sphinx";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user