2021-02-13 14:23:35 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, libftdi1
|
|
|
|
, libusb1
|
|
|
|
, udev
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openfpgaloader";
|
2021-02-17 17:02:09 +00:00
|
|
|
version = "0.2.5";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trabucayre";
|
|
|
|
repo = "openFPGALoader";
|
|
|
|
rev = "v${version}";
|
2021-02-17 17:02:09 +00:00
|
|
|
sha256 = "sha256-Qbw+vmpxiZXTGM0JwpS5mGzcsSJNegsvmncm+cOVrVE=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libftdi1
|
|
|
|
libusb1
|
|
|
|
udev
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Universal utility for programming FPGAs";
|
|
|
|
homepage = "https://github.com/trabucayre/openFPGALoader";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ danderson ];
|
|
|
|
};
|
|
|
|
}
|