added liteiclink for liteeth annoyingly

This commit is contained in:
saji 2024-04-19 15:39:59 -05:00
parent 164859fc67
commit f4cc382020
3 changed files with 26 additions and 0 deletions

View file

@ -39,6 +39,7 @@
liteeth liteeth
litescope litescope
litespi litespi
liteiclink
pythondata-cpu-vexriscv pythondata-cpu-vexriscv
pythondata-software-compiler_rt pythondata-software-compiler_rt
pythondata-software-picolibc pythondata-software-picolibc

View file

@ -9,6 +9,7 @@ in final: prev: {
liteeth = python-final.callPackage(import ./liteeth.nix tag) { }; liteeth = python-final.callPackage(import ./liteeth.nix tag) { };
litescope = python-final.callPackage(import ./litescope.nix tag) { }; litescope = python-final.callPackage(import ./litescope.nix tag) { };
litespi = python-final.callPackage(import ./litespi.nix tag) { }; litespi = python-final.callPackage(import ./litespi.nix tag) { };
liteiclink = python-final.callPackage(import ./liteiclink.nix tag) { };
pythondata-cpu-vexriscv = python-final.callPackage(import ./pythondata-cpu-vexriscv.nix tag) { }; pythondata-cpu-vexriscv = python-final.callPackage(import ./pythondata-cpu-vexriscv.nix tag) { };
pythondata-software-compiler_rt = python-final.callPackage(import ./pythondata-software-compiler_rt.nix tag) { }; pythondata-software-compiler_rt = python-final.callPackage(import ./pythondata-software-compiler_rt.nix tag) { };
pythondata-software-picolibc = python-final.callPackage(import ./pythondata-software-picolibc.nix tag) { }; pythondata-software-picolibc = python-final.callPackage(import ./pythondata-software-picolibc.nix tag) { };

24
litex/liteiclink.nix Normal file
View file

@ -0,0 +1,24 @@
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;
}