depot/third_party/nixpkgs/pkgs/development/embedded/fpga/fujprog/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

40 lines
876 B
Nix

{ lib, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, IOKit
, libftdi1
, libusb-compat-0_1
}:
stdenv.mkDerivation rec {
pname = "fujprog";
version = "4.8";
src = fetchFromGitHub {
owner = "kost";
repo = pname;
rev = "v${version}";
sha256 = "08kzkzd5a1wfd1aycywdynxh3qy6n7z9i8lihkahmb4xac3chmz5";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libftdi1
libusb-compat-0_1
] ++ lib.optionals stdenv.isDarwin [ IOKit ];
meta = with lib; {
description = "JTAG programmer for the ULX3S and ULX2S open hardware FPGA development boards";
mainProgram = "fujprog";
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}";
};
}