2021-02-13 14:23:35 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, libftdi1
|
|
|
|
, libusb1
|
|
|
|
, udev
|
2022-07-14 12:49:19 +00:00
|
|
|
, hidapi
|
|
|
|
, zlib
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openfpgaloader";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.9.0";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trabucayre";
|
|
|
|
repo = "openFPGALoader";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-GPPycZTijEMXWgxxtPEhiDJk7FelQcwIGFbbrOHna+w=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libftdi1
|
|
|
|
libusb1
|
|
|
|
udev
|
2022-07-14 12:49:19 +00:00
|
|
|
hidapi
|
|
|
|
zlib
|
2021-02-13 14:23:35 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Universal utility for programming FPGAs";
|
|
|
|
homepage = "https://github.com/trabucayre/openFPGALoader";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ danderson ];
|
|
|
|
};
|
|
|
|
}
|