From 141b4b2a713cff13d8d2fed71a6ad3b3fba6f1c5 Mon Sep 17 00:00:00 2001 From: Las Safin Date: Sun, 12 Sep 2021 18:34:58 +0000 Subject: [PATCH] Fix openpower-isa --- nix/openpower-isa.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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; -- 2.30.2