mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-06 05:13:37 +00:00
Compare commits
6 Commits
build-vm-w
...
litex
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
233507f3c4 | ||
|
|
723497aba4 | ||
|
|
eac4085915 | ||
|
|
ae40cd23c2 | ||
|
|
b316d4fcf2 | ||
|
|
b2d52f1d67 |
32
pkgs/development/python-modules/litespi/default.nix
Normal file
32
pkgs/development/python-modules/litespi/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
33
pkgs/development/python-modules/litex-boards/default.nix
Normal file
33
pkgs/development/python-modules/litex-boards/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
36
pkgs/development/python-modules/litex/default.nix
Normal file
36
pkgs/development/python-modules/litex/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user