From: Las Safin Date: Sun, 12 Sep 2021 18:34:58 +0000 (+0000) Subject: Fix openpower-isa X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=141b4b2a713cff13d8d2fed71a6ad3b3fba6f1c5;p=soc.git Fix openpower-isa --- diff --git a/nix/openpower-isa.nix b/nix/openpower-isa.nix index 76c4987b..7413bed1 100644 --- a/nix/openpower-isa.nix +++ b/nix/openpower-isa.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchgit, libresoc-nmutil, astor, nmigen, ply, pygdbmi }: +{ lib, python, buildPythonPackage, fetchgit, libresoc-nmutil, astor, nmigen, ply, pygdbmi }: buildPythonPackage { pname = "libresoc-openpower-isa"; @@ -14,6 +14,16 @@ buildPythonPackage { doCheck = false; + prePatch = '' + touch ./src/openpower/sv/__init__.py # TODO: fix upstream + ''; + + postInstall = '' + cp -rT ./openpower $out/${python.sitePackages}/../openpower/ + ''; + + pythonImportsCheck = [ "openpower.decoder.power_decoder2" ]; + meta = with lib; { homepage = "https://pypi.org/project/libresoc-openpower-isa/"; license = licenses.lgpl3Plus;