2022-12-29 16:21:23 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, libusb1
|
|
|
|
}:
|
2008-02-03 14:43:19 +00:00
|
|
|
|
2021-08-27 14:47:49 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fxload";
|
2022-12-29 16:21:23 +00:00
|
|
|
version = libusb1.version;
|
|
|
|
dontUnpack = true;
|
|
|
|
dontBuild = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontInstall = true;
|
|
|
|
dontPatch = true;
|
|
|
|
dontPatchELF = true;
|
2018-08-19 22:55:52 +00:00
|
|
|
|
2022-12-29 16:21:23 +00:00
|
|
|
# fxload binary exist inside the `examples/bin` directory of `libusb1`
|
|
|
|
postFixup = ''
|
2023-01-19 17:59:35 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s ${passthru.libusb}/examples/bin/fxload $out/bin/fxload
|
2008-02-03 14:43:19 +00:00
|
|
|
'';
|
|
|
|
|
2022-12-29 16:21:23 +00:00
|
|
|
passthru.libusb = libusb1.override { withExamples = true; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-12-29 16:21:23 +00:00
|
|
|
homepage = "https://github.com/libusb/libusb";
|
|
|
|
description = "Tool to upload firmware to into an21, fx, fx2, fx2lp and fx3 ez-usb devices";
|
|
|
|
license = licenses.gpl2Only;
|
2018-08-19 22:55:52 +00:00
|
|
|
platforms = platforms.linux;
|
2022-12-29 16:21:23 +00:00
|
|
|
maintainers = with maintainers; [ realsnick ];
|
2008-02-03 14:43:19 +00:00
|
|
|
};
|
|
|
|
}
|