nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv
2, fetchFromGitHub
3, cmake
4, pkg-config
5, IOKit
6, libftdi1
7, libusb-compat-0_1
8}:
9
10stdenv.mkDerivation rec {
11 pname = "fujprog";
12 version = "4.8";
13
14 src = fetchFromGitHub {
15 owner = "kost";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "08kzkzd5a1wfd1aycywdynxh3qy6n7z9i8lihkahmb4xac3chmz5";
19 };
20
21 nativeBuildInputs = [
22 cmake
23 pkg-config
24 ];
25
26 buildInputs = [
27 libftdi1
28 libusb-compat-0_1
29 ] ++ lib.optionals stdenv.isDarwin [ IOKit ];
30
31 meta = with lib; {
32 description = "JTAG programmer for the ULX3S and ULX2S open hardware FPGA development boards";
33 homepage = "https://github.com/kost/fujprog";
34 license = licenses.bsd2;
35 maintainers = with maintainers; [ trepetti ];
36 platforms = platforms.all;
37 changelog = "https://github.com/kost/fujprog/releases/tag/v${version}";
38 };
39}