kapidox: fix build with python packages
This commit is contained in:
parent
be20107809
commit
a2e8dd2e74
|
@ -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" ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue