kapidox: fix build with python packages
This commit is contained in:
@@ -1,9 +1,25 @@
|
||||
{ mkDerivation, lib, extra-cmake-modules, python3 }:
|
||||
{ mkDerivation, python3, qtbase }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kapidox";
|
||||
nativeBuildInputs = [ extra-cmake-modules python3 python3.pkgs.setuptools ];
|
||||
postFixup = ''
|
||||
moveToOutput bin $bin
|
||||
buildInputs = with python3.pkgs; [ jinja2 pyyaml requests ];
|
||||
nativeBuildInputs = with python3.pkgs; [ qtbase setuptools ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e 's|"doxy\w\+", ||g' setup.py
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
${python3.interpreter} setup.py build
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
${python3.interpreter} setup.py install --prefix="$out"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
outputs = [ "out" ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user