2022-01-03 16:56:52 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, libxml2, libxslt, python3, qt4 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# This derivation does not provide any Python module and should therefore be called via `all-packages.nix`.
|
|
|
|
let
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonEnv = python3.withPackages (ps: with ps; [ sphinx ]);
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pyside-apiextractor";
|
|
|
|
version = "0.10.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PySide";
|
|
|
|
repo = "Apiextractor";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-YH8aYyzv59xiIglZbdNgOPnmEQwNE2GmotAFFfFdMlg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlagsArray=("-DCMAKE_INSTALL_PREFIX=$dev")
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pythonEnv ];
|
|
|
|
buildInputs = [ qt4 libxml2 libxslt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Eases the development of bindings of Qt-based libraries for high level languages by automating most of the process";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.pyside.org/docs/apiextractor/";
|
|
|
|
maintainers = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|