lol
at 24.05-pre 34 lines 845 B view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, libusb1, ...}: 2 3stdenv.mkDerivation rec { 4 pname = "libuldaq"; 5 version = "1.2.1"; 6 7 src = fetchFromGitHub { 8 owner = "mccdaq"; 9 repo = "uldaq"; 10 rev = "v${version}"; 11 sha256 = "sha256-DA1mxu94z5xDpGK9OBwD02HXlOATv/slqZ4lz5GM7QM="; 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}