lol

libusbsio: init at 2.1.11

Many thanks to David Runge (dvzrv), who made an effort to get this
available under a free license earlier this year:
https://github.com/NXPmicro/spsdk/issues/36

+39
+37
pkgs/development/libraries/libusbsio/default.nix
··· 1 + { lib, stdenv, fetchzip, pkg-config, libusb1, systemdMinimal }: 2 + let 3 + binDirPrefix = if stdenv.isDarwin then "osx_" else "linux_"; 4 + in 5 + stdenv.mkDerivation rec { 6 + pname = "libusbsio"; 7 + version = "2.1.11"; 8 + 9 + src = fetchzip { 10 + url = "https://www.nxp.com/downloads/en/libraries/libusbsio-${version}-src.zip"; 11 + sha256 = "sha256-qgoeaGWTWdTk5XpJwoauckEQlqB9lp5x2+TN09vQttI="; 12 + }; 13 + 14 + postPatch = '' 15 + rm -r bin/* 16 + ''; 17 + 18 + nativeBuildInputs = [ pkg-config ]; 19 + buildInputs = [ 20 + libusb1 21 + systemdMinimal # libudev 22 + ]; 23 + 24 + installPhase = '' 25 + runHook preInstall 26 + install -D bin/${binDirPrefix}${stdenv.hostPlatform.parsed.cpu.name}/libusbsio${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libusbsio${stdenv.hostPlatform.extensions.sharedLibrary} 27 + runHook postInstall 28 + ''; 29 + 30 + meta = with lib; { 31 + homepage = "https://www.nxp.com/design/software/development-software/library-for-windows-macos-and-ubuntu-linux:LIBUSBSIO"; 32 + description = "Library for communicating with devices connected via the USB bridge on LPC-Link2 and MCU-Link debug probes on supported NXP microcontroller evaluation boards"; 33 + platforms = platforms.all; 34 + license = licenses.bsd3; 35 + maintainers = with maintainers; [ frogamic sbruder ]; 36 + }; 37 + }
+2
pkgs/top-level/all-packages.nix
··· 19946 19946 19947 19947 libusbmuxd = callPackage ../development/libraries/libusbmuxd { }; 19948 19948 19949 + libusbsio = callPackage ../development/libraries/libusbsio { }; 19950 + 19949 19951 libutempter = callPackage ../development/libraries/libutempter { }; 19950 19952 19951 19953 libuldaq = callPackage ../development/libraries/libuldaq { };