libuldaq: init at 1.2.0

+64
+28
pkgs/development/libraries/libuldaq/0001-uldaq.patch
··· 1 + diff --git a/Makefile.am b/Makefile.am 2 + index 0e69cd4..b4a1f1a 100644 3 + --- a/Makefile.am 4 + +++ b/Makefile.am 5 + @@ -26,7 +26,7 @@ dist_pkgconfig_DATA=libuldaq.pc 6 + # fpga/USB_DIO32HS.bin 7 + 8 + if OS_LINUX 9 + -rulesdatadir=/lib/udev/rules.d/ 10 + +rulesdatadir=$(libdir)/udev/rules.d/ 11 + dist_rulesdata_DATA=rules/50-uldaq.rules 12 + endif 13 + 14 + @@ -42,14 +42,6 @@ dist-up: dist 15 + mkdir -p $(reldir) 16 + cp $(distdir).tar.bz2 $(reldir) 17 + 18 + -if OS_LINUX 19 + -install-data-hook: 20 + - udevadm control --reload-rules && \ 21 + - test -f "/etc/redhat-release" && echo "/usr/local/lib" > /etc/ld.so.conf.d/uldaq.conf || echo "" && \ 22 + - test -f "/etc/arch-release" && echo "/usr/local/lib" > /etc/ld.so.conf.d/uldaq.conf || echo "" && \ 23 + - ldconfig 24 + -endif 25 + - 26 + if OS_LINUX 27 + uninstall-hook: 28 + test -f "/etc/ld.so.conf.d/uldaq.conf" && rm "/etc/ld.so.conf.d/uldaq.conf" || echo ""
+34
pkgs/development/libraries/libuldaq/default.nix
··· 1 + { lib, stdenv, fetchFromGitHub, autoreconfHook, libusb1, ...}: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "libuldaq"; 5 + version = "1.2.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "mccdaq"; 9 + repo = "uldaq"; 10 + rev = "v${version}"; 11 + sha256 = "0l9ima8ac99yd9vvjvdrmacm95ghv687wiy39zxm00cmghcfv3vj"; 12 + }; 13 + 14 + patches = [ 15 + # Patch needed for `make install` to succeed 16 + ./0001-uldaq.patch 17 + ]; 18 + 19 + nativeBuildInputs = [ autoreconfHook ]; 20 + 21 + buildInputs = [ libusb1 ]; 22 + 23 + meta = with lib; { 24 + description = "Library to talk to uldaq devices"; 25 + longDescription = '' 26 + Library used to communicate with USB data acquisition (DAQ) 27 + devices from Measurement Computing 28 + ''; 29 + homepage = "https://github.com/mccdaq/uldaq"; 30 + license = licenses.mit; 31 + platforms = platforms.linux; 32 + maintainers = [ maintainers.simonkampe ]; 33 + }; 34 + }
+2
pkgs/top-level/all-packages.nix
··· 17079 17079 17080 17080 libutempter = callPackage ../development/libraries/libutempter { }; 17081 17081 17082 + libuldaq = callPackage ../development/libraries/libuldaq { }; 17083 + 17082 17084 libunwind = 17083 17085 if stdenv.isDarwin then darwin.libunwind 17084 17086 else if stdenv.hostPlatform.isRiscV then llvmPackages_latest.libunwind