blob: 147cd19164e2a5d314988095df95b8b4d6dd591d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
isPy3k,
future,
pyusb,
ipython,
pygreat,
}:
buildPythonPackage rec {
pname = "greatfet";
version = "2024.0.1";
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = "greatfet";
rev = "refs/tags/v${version}";
sha256 = "sha256-AKpaJZJTzMY3IQXLvVnLWh3IHeGp759z6tvaBl28BHQ=";
};
disabled = !isPy3k;
propagatedBuildInputs = [
future
pyusb
ipython
pygreat
];
doCheck = false;
preBuild = ''
cd host
echo "$version" > ../VERSION
'';
meta = {
description = "Hardware hacking with the greatfet";
homepage = "https://greatscottgadgets.com/greatfet";
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ mog ];
};
}
|