2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
horizon-eda,
|
|
|
|
mesa,
|
|
|
|
pycairo,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
2023-10-19 13:55:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
base = horizon-eda.passthru.base;
|
|
|
|
in
|
|
|
|
buildPythonPackage {
|
2024-06-05 15:53:02 +00:00
|
|
|
inherit (base)
|
|
|
|
pname
|
|
|
|
version
|
|
|
|
src
|
|
|
|
meta
|
|
|
|
CASROOT
|
|
|
|
;
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
pyproject = false;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
buildInputs = base.buildInputs ++ [
|
|
|
|
mesa
|
|
|
|
mesa.osmesa
|
|
|
|
python
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pycairo ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = base.nativeBuildInputs;
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
ninjaFlags = [ "horizon.so" ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/${python.sitePackages}
|
2024-09-19 14:19:46 +00:00
|
|
|
cp horizon.so $out/${python.sitePackages}
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
}
|