HeavyX/eda/nmigen.nix

24 lines
761 B
Nix
Raw Normal View History

2019-03-19 15:46:28 +08:00
{ stdenv, fetchFromGitHub, python3Packages, yosys, symbiyosys, yices }:
python3Packages.buildPythonPackage {
name = "nmigen";
src = fetchFromGitHub {
owner = "m-labs";
repo = "nmigen";
2019-04-17 16:08:18 +08:00
rev = "287a0531b325c752a94d12ce6169a1de66c9569a";
sha256 = "17s9771f1swb9aajmddmpcslwzla5y17gzjzlzwk5kmgywxydq3v";
2019-03-19 15:46:28 +08:00
};
checkPhase = "PATH=${yosys}/bin:${symbiyosys}/bin:${yices}/bin:$PATH python -m unittest discover nmigen.test";
propagatedBuildInputs = [ python3Packages.bitarray python3Packages.pyvcd ];
meta = with stdenv.lib; {
description = "A refreshed Python toolbox for building complex digital hardware";
homepage = "https://lambdaconcept.com";
license = licenses.bsd2;
maintainers = [ maintainers.sb0 ];
};
}