Compare commits

...

6 Commits

Author SHA1 Message Date
Raito Bezarius
233507f3c4 pythondata-cpu-vexriscv: init at 2020.04 2023-06-14 02:22:58 +02:00
Raito Bezarius
723497aba4 litespi: init at 2023.04 2023-06-14 02:22:38 +02:00
Raito Bezarius
eac4085915 pythondata-software-compiler_rt: init at 2023.04 2023-06-14 02:22:14 +02:00
Raito Bezarius
ae40cd23c2 pythondata-software-picolibc: init at 2023.04 2023-06-14 02:21:59 +02:00
Raito Bezarius
b316d4fcf2 litex-boards: init at 2023.04 2023-06-14 02:21:39 +02:00
Raito Bezarius
b2d52f1d67 litex: init at 2023.04 2023-06-14 02:21:15 +02:00
7 changed files with 198 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, migen
, litex
}:
buildPythonPackage rec {
pname = "litespi";
version = "2023.04";
format = "setuptools";
src = fetchFromGitHub {
owner = "litex-hub";
repo = "litespi";
rev = version;
hash = "sha256-q4I/ir7cQHAVcG+Qz3Zglk3iUwxzLQrCVZbCPTXugds=";
};
propagatedBuildInputs = [ migen litex ];
pythonImportsCheck = [ "litespi" ];
doCheck = false;
meta = with lib; {
description = "Small footprint and configurable SPI core";
homepage = "https://github.com/litex-hub/litespi";
license = licenses.bsd2;
maintainers = with maintainers; [ raitobezarius ];
};
}

View File

@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, migen
, litex
}:
buildPythonPackage rec {
pname = "litex-boards";
version = "2023.04";
format = "setuptools";
src = fetchFromGitHub {
owner = "litex-hub";
repo = "litex-boards";
rev = version;
hash = "sha256-4gG3vvqnVXNfB7FtOeI9EPD/E8biREM5WKuYnSSBELc=";
};
# VexRiscV CPU is needed.
nativeCheckInputs = [ migen litex ];
pythonImportsCheck = [ "litex_boards" ];
doCheck = false;
meta = with lib; {
description = "LiteX boards files";
homepage = "https://github.com/litex-hub/litex-boards";
license = licenses.bsd2;
maintainers = with maintainers; [ raitobezarius ];
};
}

View File

@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, migen
, packaging
, requests
, pyserial
}:
buildPythonPackage rec {
pname = "litex";
version = "2023.04";
format = "setuptools";
src = fetchFromGitHub {
owner = "enjoy-digital";
repo = "litex";
rev = version;
hash = "sha256-XXcYrCyFysglKT8AChyOT8rweG6IChEpueL+SFKc1Aw=";
};
propagatedBuildInputs = [ migen packaging requests pyserial ];
pythonImportsCheck = [ "litex" ];
# Tests are broken due to misimporting migen?
doCheck = false;
meta = with lib; {
description = "Build your hardware, easily";
homepage = "https://github.com/enjoy-digital/litex";
changelog = "https://github.com/enjoy-digital/litex/blob/${src.rev}/CHANGES.md";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ raitobezarius ];
};
}

View File

@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "pythondata-cpu-vexriscv";
version = "2020.04";
format = "setuptools";
src = fetchFromGitHub {
owner = "litex-hub";
repo = "pythondata-cpu-vexriscv";
rev = version;
hash = "sha256-6+cLGXhj16rlMRZ3p+qJ4FvIrRtvYUn+DKzqNT522NE=";
fetchSubmodules = true;
};
pythonImportsCheck = [ "pythondata_cpu_vexriscv" ];
# This is data.
doCheck = false;
meta = with lib; {
description = "Python module containing verilog files for vexriscv cpu (for use with LiteX";
homepage = "https://github.com/litex-hub/pythondata-cpu-vexriscv.git";
license = with licenses; [ mit ];
maintainers = with maintainers; [ raitobezarius ];
};
}

View File

@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "pythondata-software-compiler-rt";
version = "2020.04";
format = "setuptools";
src = fetchFromGitHub {
owner = "litex-hub";
repo = "pythondata-software-compiler_rt";
rev = version;
hash = "sha256-nE0ZvdlHj4BfbKd1D+AqCHGpVXNMovOIGKMT32WqZ3A=";
};
pythonImportsCheck = [ "pythondata_software_compiler_rt" ];
doCheck = false;
meta = with lib; {
description = "Python module containing data files for compiler_rt software (for use with LiteX";
homepage = "https://github.com/litex-hub/pythondata-software-compiler_rt";
license = with licenses; [ ];
maintainers = with maintainers; [ raitobezarius ];
};
}

View File

@@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "pythondata-software-picolibc";
version = "2023.04";
format = "setuptools";
src = fetchFromGitHub {
owner = "litex-hub";
repo = "pythondata-software-picolibc";
rev = version;
hash = "sha256-0OpEdBGu/tkFFPUi1RLsTqF2tKwLSfYIi+vPqgfLMd8=";
fetchSubmodules = true;
};
pythonImportsCheck = [ "pythondata_software_picolibc" ];
doCheck = false;
meta = with lib; {
description = "Python module containing data files for picolibc software (for use with LiteX";
homepage = "https://github.com/litex-hub/pythondata-software-picolibc";
license = licenses.bsd3;
maintainers = with maintainers; [ raitobezarius ];
};
}

View File

@@ -6237,6 +6237,16 @@ self: super: with self; {
migen = callPackage ../development/python-modules/migen { };
litex = callPackage ../development/python-modules/litex { };
litex-boards = callPackage ../development/python-modules/litex-boards { };
litespi = callPackage ../development/python-modules/litespi { };
pythondata-cpu-vexriscv = callPackage ../development/python-modules/pythondata-cpu-vexriscv { };
pythondata-software-picolibc = callPackage ../development/python-modules/pythondata-software-picolibc { };
pythondata-software-compiler_rt = callPackage ../development/python-modules/pythondata-software-compiler_rt { };
mike = callPackage ../development/python-modules/mike { };
milc = callPackage ../development/python-modules/milc { };