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-09-30 11:47:45 +00:00
|
|
|
version = "0.9.1";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trabucayre";
|
|
|
|
repo = "openFPGALoader";
|
|
|
|
rev = "v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-CnJBmbvJ4FfKqdyoD8K94Eeoqly2Q6UV5wQ6EWv2isI=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|