mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
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
This commit is contained in:
parent
af149e56ef
commit
1a941b4b5f
37
pkgs/development/libraries/libusbsio/default.nix
Normal file
37
pkgs/development/libraries/libusbsio/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ lib, stdenv, fetchzip, pkg-config, libusb1, systemdMinimal }:
|
||||
let
|
||||
binDirPrefix = if stdenv.isDarwin then "osx_" else "linux_";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libusbsio";
|
||||
version = "2.1.11";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://www.nxp.com/downloads/en/libraries/libusbsio-${version}-src.zip";
|
||||
sha256 = "sha256-qgoeaGWTWdTk5XpJwoauckEQlqB9lp5x2+TN09vQttI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
rm -r bin/*
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libusb1
|
||||
systemdMinimal # libudev
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D bin/${binDirPrefix}${stdenv.hostPlatform.parsed.cpu.name}/libusbsio${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libusbsio${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.nxp.com/design/software/development-software/library-for-windows-macos-and-ubuntu-linux:LIBUSBSIO";
|
||||
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";
|
||||
platforms = platforms.all;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ frogamic sbruder ];
|
||||
};
|
||||
}
|
@ -19946,6 +19946,8 @@ with pkgs;
|
||||
|
||||
libusbmuxd = callPackage ../development/libraries/libusbmuxd { };
|
||||
|
||||
libusbsio = callPackage ../development/libraries/libusbsio { };
|
||||
|
||||
libutempter = callPackage ../development/libraries/libutempter { };
|
||||
|
||||
libuldaq = callPackage ../development/libraries/libuldaq { };
|
||||
|
Loading…
Reference in New Issue
Block a user