@@ -0,0 +1,34 @@
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+}