2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv
|
2020-08-20 19:15:23 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-10-12 17:29:44 +01:00
|
|
|
, IOKit
|
2020-08-20 19:15:23 +01:00
|
|
|
, libftdi1
|
|
|
|
, libusb-compat-0_1
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fujprog";
|
2020-10-12 17:30:47 +01:00
|
|
|
version = "4.8";
|
2020-08-20 19:15:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kost";
|
2020-11-01 22:39:49 +00:00
|
|
|
repo = pname;
|
2020-08-20 19:15:23 +01:00
|
|
|
rev = "v${version}";
|
2020-10-12 17:30:47 +01:00
|
|
|
sha256 = "08kzkzd5a1wfd1aycywdynxh3qy6n7z9i8lihkahmb4xac3chmz5";
|
2020-08-20 19:15:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2020-08-20 19:15:23 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libftdi1
|
|
|
|
libusb-compat-0_1
|
2021-01-23 12:26:19 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ IOKit ];
|
2020-08-20 19:15:23 +01:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-10-12 17:29:44 +01:00
|
|
|
description = "JTAG programmer for the ULX3S and ULX2S open hardware FPGA development boards";
|
2020-08-20 19:15:23 +01:00
|
|
|
homepage = "https://github.com/kost/fujprog";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ trepetti ];
|
2020-10-12 17:29:44 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
changelog = "https://github.com/kost/fujprog/releases/tag/v${version}";
|
2020-08-20 19:15:23 +01:00
|
|
|
};
|
|
|
|
}
|