3 { lib, buildPythonPackage, yosys, runCommand, c4m-jtag, nmigen-soc
4 , libresoc-ieee754fpu, libresoc-openpower-isa, python }:
7 # If we use ../. as source, then any change to
8 # any unrelated Nix file would cause a rebuild,
9 # since the build would have access to it.
10 src = runCommand "libresoc-soc-source" {} ''
12 cp -r ${../src} -T $out/src
13 cp -r ${../pinmux} -T $out/pinmux
14 cp -r ${../setup.py} -T $out/setup.py
18 pname = "libresoc-soc";
21 propagatedBuildInputs = [
22 c4m-jtag nmigen-soc python libresoc-ieee754fpu libresoc-openpower-isa yosys
27 pythonImportsCheck = [ "soc" ];
30 homepage = "https://libre-soc.org/";
31 license = licenses.lgpl3Plus;