Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 32 lines 804 B view raw
1{ lib 2, stdenv 3, libusb1 4}: 5 6stdenv.mkDerivation rec { 7 pname = "fxload"; 8 version = libusb1.version; 9 dontUnpack = true; 10 dontBuild = true; 11 dontConfigure = true; 12 dontInstall = true; 13 dontPatch = true; 14 dontPatchELF = true; 15 16 # fxload binary exist inside the `examples/bin` directory of `libusb1` 17 postFixup = '' 18 mkdir -p $out/bin 19 ln -s ${passthru.libusb}/examples/bin/fxload $out/bin/fxload 20 ''; 21 22 passthru.libusb = libusb1.override { withExamples = true; }; 23 24 meta = with lib; { 25 homepage = "https://github.com/libusb/libusb"; 26 description = "Tool to upload firmware to into an21, fx, fx2, fx2lp and fx3 ez-usb devices"; 27 mainProgram = "fxload"; 28 license = licenses.gpl2Only; 29 platforms = platforms.linux; 30 maintainers = with maintainers; [ realsnick ]; 31 }; 32}