b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
46 lines
684 B
Nix
46 lines
684 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, callPackage
|
|
, 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;
|
|
|
|
buildFlags = ["pymodule"];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/${python.sitePackages}
|
|
cp build/horizon.so $out/${python.sitePackages}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
}
|