From f4cc3820208fada9df32da8d2903dfe09fbda574 Mon Sep 17 00:00:00 2001 From: saji Date: Fri, 19 Apr 2024 15:39:59 -0500 Subject: [PATCH] added liteiclink for liteeth annoyingly --- flake.nix | 1 + litex/default.nix | 1 + litex/liteiclink.nix | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 litex/liteiclink.nix diff --git a/flake.nix b/flake.nix index 750d518..bf6c3da 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,7 @@ liteeth litescope litespi + liteiclink pythondata-cpu-vexriscv pythondata-software-compiler_rt pythondata-software-picolibc diff --git a/litex/default.nix b/litex/default.nix index 62b82e1..3e9ed12 100644 --- a/litex/default.nix +++ b/litex/default.nix @@ -9,6 +9,7 @@ in final: prev: { liteeth = python-final.callPackage(import ./liteeth.nix tag) { }; litescope = python-final.callPackage(import ./litescope.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-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) { }; diff --git a/litex/liteiclink.nix b/litex/liteiclink.nix new file mode 100644 index 0000000..f6a32b7 --- /dev/null +++ b/litex/liteiclink.nix @@ -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; +}