3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/fujprog/default.nix

40 lines
859 B
Nix
Raw Normal View History

2020-08-20 19:15:23 +01:00
{ stdenv
, fetchFromGitHub
, cmake
, pkgconfig
, IOKit
2020-08-20 19:15:23 +01:00
, libftdi1
, libusb-compat-0_1
}:
stdenv.mkDerivation rec {
pname = "fujprog";
version = "4.6";
src = fetchFromGitHub {
owner = "kost";
repo = "${pname}";
rev = "v${version}";
sha256 = "04l5rrfrp3pflwz5ncwvb4ibbsqib2259m23bzfi8m80aj216shd";
};
nativeBuildInputs = [
cmake
pkgconfig
];
buildInputs = [
libftdi1
libusb-compat-0_1
] ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
2020-08-20 19:15:23 +01:00
meta = with stdenv.lib; {
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 ];
platforms = platforms.all;
changelog = "https://github.com/kost/fujprog/releases/tag/v${version}";
2020-08-20 19:15:23 +01:00
};
}