blob: 3ddfd974864581a46e3415547165540a98993e30 (
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
47
|
{
cmake
, fetchFromGitHub
, hidapi
, lib
, libftdi1
, libusb1
, pkg-config
, stdenv
, udev
, zlib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "openfpgaloader";
version = "0.12.0";
src = fetchFromGitHub {
owner = "trabucayre";
repo = "openFPGALoader";
rev = "v${finalAttrs.version}";
hash = "sha256-fe0g8+q/4r7h++7/Bk7pbOJn1CsAc+2IzXN6lqtY2vY=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
hidapi
libftdi1
libusb1
zlib
] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform udev) [
udev
];
meta = {
description = "Universal utility for programming FPGAs";
mainProgram = "openFPGALoader";
homepage = "https://github.com/trabucayre/openFPGALoader";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ danderson ];
platforms = lib.platforms.unix;
};
})
|