blob: fef22dea06ae8add8beb3a1a39ff4d48f39a572c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
, flex
, yacc
, xmlto
, docbook_xsl
, docbook_xml_dtd_44
, swig
, perl
, python3
}:
stdenv.mkDerivation rec {
pname = "comedilib";
version = "0.12.0";
src = fetchFromGitHub {
owner = "Linux-Comedi";
repo = "comedilib";
rev = "r${lib.replaceStrings [ "." ] [ "_" ] version}";
sha256 = "0kfs2dw62vjz8j7fgsxq6ky8r8kca726gyklbm6kljvgfh47lyfw";
};
nativeBuildInputs = [
autoreconfHook
flex
yacc
swig
xmlto
docbook_xml_dtd_44
docbook_xsl
python3
perl
];
preConfigure = ''
patchShebangs --build doc/mkref doc/mkdr perl/Comedi.pm
'';
configureFlags = [
"--with-udev-hotplug=${placeholder "out"}/lib"
"--sysconfdir=${placeholder "out"}/etc"
];
outputs = [ "out" "dev" "man" "doc" ];
meta = with lib; {
description = "The Linux Control and Measurement Device Interface Library";
homepage = "https://github.com/Linux-Comedi/comedilib";
license = licenses.lgpl21;
maintainers = [ maintainers.doronbehar ];
platforms = platforms.linux;
};
}
|