packages = forAllSystems (system: {
verilog = nixpkgsFor.${system}.libresoc-verilog;
+ openpower-isa = nixpkgsFor.${system}.python3Packages.libresoc-openpower-isa;
});
defaultPackage = forAllSystems (system: self.packages.${system}.verilog);
{ version, src }:
-{ lib, python, buildPythonPackage, nmigen-soc, nmigen, modgrammar }:
+{ lib, python, buildPythonPackage, nmigen-soc, nmigen, modgrammar, setuptools-scm }:
buildPythonPackage {
- pname = "libresoc-openpower-isa";
- inherit version src;
+ pname = "c4m-jtag";
+ inherit src;
+ version = "2.17";
+ nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ nmigen-soc nmigen modgrammar ];
doCheck = false;
pythonImportsCheck = [ "c4m.nmigen.jtag.tap" ];
+ prePatch = ''
+ sed -i -e 's/use_scm_version=scm_version..,//g' setup.py
+ '';
+
meta = with lib; {
homepage = "https://pypi.org/project/libresoc-openpower-isa/";
license = licenses.lgpl3Plus;
cp -rT ./openpower $out/${python.sitePackages}/../openpower/
'';
- pythonImportsCheck = [ "openpower.decoder.power_decoder2" ];
+ pythonImportsCheck = [ "openpower.decoder.power_decoder2" "openpower" ];
meta = with lib; {
homepage = "https://pypi.org/project/libresoc-openpower-isa/";