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