Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libuldaq / default.nix
blobfb234ef60d14c497097199f723ceeb92c12bfe59
1 { lib, stdenv, fetchFromGitHub, autoreconfHook, libusb1, ...}:
3 stdenv.mkDerivation rec {
4   pname = "libuldaq";
5   version = "1.2.1";
7   src = fetchFromGitHub {
8     owner = "mccdaq";
9     repo = "uldaq";
10     rev = "v${version}";
11     sha256 = "sha256-DA1mxu94z5xDpGK9OBwD02HXlOATv/slqZ4lz5GM7QM=";
12   };
14   patches = [
15     # Patch needed for `make install` to succeed
16     ./0001-uldaq.patch
17   ];
19   nativeBuildInputs = [ autoreconfHook ];
21   buildInputs = [ libusb1 ];
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   };