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