groovylight/litex/liteeth.nix

33 lines
501 B
Nix
Raw Permalink Normal View History

2024-09-26 06:45:57 +00:00
tag:
{
pkgs,
lib,
buildPythonPackage,
migen,
setuptools,
litex,
pyyaml,
}:
buildPythonPackage {
2024-04-19 15:13:39 +00:00
pname = "liteeth";
version = "${tag}";
src = pkgs.fetchFromGitHub {
owner = "enjoy-digital";
repo = "liteeth";
rev = "${tag}";
hash = "sha256-DUNwDzcFLVmL5F/ZWmok7T7jO7ixC9IuDr1WUarnAqk=";
};
2024-09-26 06:45:57 +00:00
buildInputs = [ litex ];
2024-04-19 15:13:39 +00:00
2024-09-26 06:45:57 +00:00
propagatedBuildInputs = [ migen ];
2024-04-19 15:13:39 +00:00
2024-09-26 06:45:57 +00:00
nativeCheckInputs = [ pyyaml ];
2024-04-19 15:13:39 +00:00
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}