groovylight/litex/liteeth.nix
Saji ccdbc98cb0
Some checks failed
Verilator Unit Tests / Test (push) Failing after 3m35s
add flake/nix formatter (nixfmt)
2024-09-26 01:46:28 -05:00

33 lines
501 B
Nix

tag:
{
pkgs,
lib,
buildPythonPackage,
migen,
setuptools,
litex,
pyyaml,
}:
buildPythonPackage {
pname = "liteeth";
version = "${tag}";
src = pkgs.fetchFromGitHub {
owner = "enjoy-digital";
repo = "liteeth";
rev = "${tag}";
hash = "sha256-DUNwDzcFLVmL5F/ZWmok7T7jO7ixC9IuDr1WUarnAqk=";
};
buildInputs = [ litex ];
propagatedBuildInputs = [ migen ];
nativeCheckInputs = [ pyyaml ];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}