depot/third_party/nixpkgs/pkgs/os-specific/linux/fxload/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

31 lines
778 B
Nix

{ lib
, stdenv
, libusb1
}:
stdenv.mkDerivation rec {
pname = "fxload";
version = libusb1.version;
dontUnpack = true;
dontBuild = true;
dontConfigure = true;
dontInstall = true;
dontPatch = true;
dontPatchELF = true;
# fxload binary exist inside the `examples/bin` directory of `libusb1`
postFixup = ''
mkdir -p $out/sbin
ln -s ${passthru.libusb}/examples/bin/fxload $out/sbin/fxload
'';
passthru.libusb = libusb1.override { withExamples = true; };
meta = with lib; {
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;
platforms = platforms.linux;
maintainers = with maintainers; [ realsnick ];
};
}