159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
48 lines
680 B
Nix
48 lines
680 B
Nix
{
|
|
buildPythonPackage,
|
|
horizon-eda,
|
|
mesa,
|
|
pycairo,
|
|
python,
|
|
pythonOlder,
|
|
}:
|
|
|
|
let
|
|
base = horizon-eda.passthru.base;
|
|
in
|
|
buildPythonPackage {
|
|
inherit (base)
|
|
pname
|
|
version
|
|
src
|
|
meta
|
|
CASROOT
|
|
;
|
|
|
|
pyproject = false;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
buildInputs = base.buildInputs ++ [
|
|
mesa
|
|
mesa.osmesa
|
|
python
|
|
];
|
|
|
|
propagatedBuildInputs = [ pycairo ];
|
|
|
|
nativeBuildInputs = base.nativeBuildInputs;
|
|
|
|
ninjaFlags = [ "horizon.so" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/${python.sitePackages}
|
|
cp horizon.so $out/${python.sitePackages}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
}
|