Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / comedilib / default.nix
blobab97ac09a57ec7bbb6b67dacd05b278ecb5cc4f2
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , autoreconfHook
5 , flex
6 , bison
7 , xmlto
8 , docbook_xsl
9 , docbook_xml_dtd_44
10 , swig
11 , perl
12 , python3
15 stdenv.mkDerivation (finalAttrs: {
16   pname = "comedilib";
17   version = "0.12.0";
19   src = fetchFromGitHub {
20     owner = "Linux-Comedi";
21     repo = "comedilib";
22     rev = "r${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
23     sha256 = "0kfs2dw62vjz8j7fgsxq6ky8r8kca726gyklbm6kljvgfh47lyfw";
24   };
26   nativeBuildInputs = [
27     autoreconfHook
28     flex
29     bison
30     swig
31     xmlto
32     docbook_xml_dtd_44
33     docbook_xsl
34     python3
35     perl
36   ];
38   preConfigure = ''
39     patchShebangs --build doc/mkref doc/mkdr perl/Comedi.pm
40   '';
42   configureFlags = [
43     "--with-udev-hotplug=${placeholder "out"}/lib"
44     "--sysconfdir=${placeholder "out"}/etc"
45   ];
47   outputs = [ "out" "dev" "man" "doc" ];
49   meta = with lib; {
50     description = "The Linux Control and Measurement Device Interface Library";
51     homepage = "https://github.com/Linux-Comedi/comedilib";
52     license = licenses.lgpl21;
53     maintainers = [ maintainers.doronbehar ];
54     platforms = platforms.linux;
55   };