mirror of
https://github.com/icewind1991/cynthion-flake.git
synced 2026-06-04 06:44:06 +02:00
init flake
This commit is contained in:
commit
a6d41bbaa3
17 changed files with 623 additions and 0 deletions
54
pkgs/python/apollo-fpga.nix
Normal file
54
pkgs/python/apollo-fpga.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildPythonPackage,
|
||||
python3Packages,
|
||||
pkgs,
|
||||
amaranth-041,
|
||||
luna-usb,
|
||||
pyusb,
|
||||
pyvcd,
|
||||
prompt-toolkit,
|
||||
pyxdg,
|
||||
setuptools,
|
||||
setuptools-git-versioning,
|
||||
}: let
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "apollo-fpga";
|
||||
version = "1.0.6";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "greatscottgadgets";
|
||||
repo = "apollo";
|
||||
rev = "3a0e3a214eb1e6a9434b8e0bf15bcf7cf54f8242";
|
||||
hash = "sha256-t3XtBzinMysIBgONPIGLqFXpzBaCqMfY3sufjtRc7Io=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-git-versioning
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
amaranth-041
|
||||
luna-usb
|
||||
pyusb
|
||||
pyvcd
|
||||
prompt-toolkit
|
||||
pyxdg
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Amaranth HDL framework for monitoring, hacking, and developing USB devices";
|
||||
homepage = "https://github.com/greatscottgadgets/luna";
|
||||
license = lib.licenses.bsd3;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue