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:
@@ -8,6 +8,7 @@
|
||||
, keybinder3
|
||||
, hicolor-icon-theme
|
||||
, wrapGAppsHook
|
||||
, wafHook
|
||||
}:
|
||||
|
||||
with python3Packages;
|
||||
@@ -24,37 +25,20 @@ buildPythonApplication rec {
|
||||
nativeBuildInputs = [
|
||||
wrapGAppsHook intltool
|
||||
# For setup hook
|
||||
gobjectIntrospection
|
||||
gobjectIntrospection wafHook
|
||||
];
|
||||
buildInputs = [ hicolor-icon-theme docutils libwnck3 keybinder3 ];
|
||||
propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ];
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
python ./waf configure --prefix=$prefix
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
python ./waf
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = let
|
||||
postInstall = let
|
||||
pythonPath = (stdenv.lib.concatMapStringsSep ":"
|
||||
(m: "${m}/lib/${python.libPrefix}/site-packages")
|
||||
propagatedBuildInputs);
|
||||
in ''
|
||||
runHook preInstall
|
||||
python ./waf install
|
||||
|
||||
gappsWrapperArgs+=(
|
||||
"--prefix" "PYTHONPATH" : "${pythonPath}"
|
||||
"--set" "PYTHONNOUSERSITE" "1"
|
||||
)
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doCheck = false; # no tests
|
||||
|
||||
Reference in New Issue
Block a user