generated from saji/ecp5-template
25 lines
394 B
Nix
25 lines
394 B
Nix
tag:
|
|
{
|
|
pkgs,
|
|
buildPythonPackage,
|
|
litex,
|
|
}:
|
|
buildPythonPackage {
|
|
pname = "liteiclink";
|
|
version = "${tag}";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "enjoy-digital";
|
|
repo = "liteiclink";
|
|
rev = "${tag}";
|
|
hash = "sha256-5Hp5vFqmfkXo1q60FvOkToTy952svirChIPIvkam04M=";
|
|
};
|
|
|
|
buildInputs = [ litex ];
|
|
|
|
checkPhase = ''
|
|
python -m unittest test
|
|
'';
|
|
doCheck = true;
|
|
}
|