Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 68 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ buildPythonPackage, cmsis-svd, fetchFromGitHub, future, ipython, lib, prompt-toolkit, pyfwup, pygreat, pyusb, setuptools, tabulate, tqdm,}:
buildPythonPackage rec { pname = "greatfet"; version = "2025.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "greatscottgadgets"; repo = "greatfet"; tag = "v${version}"; hash = "sha256-tY1ZUtjCeb0+EmmbzKbIcPQrjHc3JzgA/6yDuFwwHu4="; };
sourceRoot = "${src.name}/host";
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "setuptools-git-versioning<2"' "" \ --replace-fail 'dynamic = ["version"]' 'version = "${version}"' '';
build-system = [ setuptools ];
pythonRelaxDeps = [ "ipython" ];
dependencies = [ cmsis-svd future ipython prompt-toolkit pyfwup pygreat pyusb tabulate tqdm ];
# Tests seem to require devices (or simulators) which are # not available in the build sandbox. doCheck = false;
meta = { description = "Hardware hacking with the greatfet"; homepage = "https://greatscottgadgets.com/greatfet"; license = lib.licenses.bsd3; platforms = lib.platforms.all; mainProgram = "gf"; maintainers = with lib.maintainers; [ mog msanft ]; };}