2020-05-29 06:06:01 +00:00
|
|
|
{ stdenv
|
2021-02-05 17:12:51 +00:00
|
|
|
, lib
|
2020-05-29 06:06:01 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, flex
|
2021-04-05 15:23:46 +00:00
|
|
|
, bison
|
2020-05-29 06:06:01 +00:00
|
|
|
, xmlto
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_44
|
|
|
|
, swig
|
|
|
|
, perl
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-05-29 06:06:01 +00:00
|
|
|
pname = "comedilib";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.12.0";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Linux-Comedi";
|
|
|
|
repo = "comedilib";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "r${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "0kfs2dw62vjz8j7fgsxq6ky8r8kca726gyklbm6kljvgfh47lyfw";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
flex
|
2021-04-05 15:23:46 +00:00
|
|
|
bison
|
2020-05-29 06:06:01 +00:00
|
|
|
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" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-29 06:06:01 +00:00
|
|
|
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;
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|