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
44
pkgs/python/luna-soc.nix
Normal file
44
pkgs/python/luna-soc.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildPythonPackage,
|
||||
python3Packages,
|
||||
pkgs,
|
||||
luna-usb,
|
||||
setuptools,
|
||||
setuptools-git-versioning,
|
||||
}: let
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "luna-soc";
|
||||
version = "0.2.0";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "greatscottgadgets";
|
||||
repo = "luna-soc";
|
||||
rev = "0.2.0";
|
||||
hash = "sha256-P8P32hM1cVXENcDpCrmPe8BvkMCWdeEgHwbIU94uLe8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-git-versioning
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
luna-usb
|
||||
];
|
||||
|
||||
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