3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/comedilib/default.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

2020-04-04 10:25:48 +01:00
{ stdenv
, fetchFromGitHub
, autoreconfHook
, flex
, yacc
, xmlto
, docbook_xsl
, docbook_xml_dtd_44
, swig
, perl
, python3
}:
stdenv.mkDerivation rec {
pname = "comedilib";
2020-10-22 11:52:56 +01:00
version = "0.12.0";
2020-04-04 10:25:48 +01:00
src = fetchFromGitHub {
owner = "Linux-Comedi";
repo = "comedilib";
rev = "r${stdenv.lib.replaceStrings [ "." ] [ "_" ] version}";
2020-10-22 11:52:56 +01:00
sha256 = "0kfs2dw62vjz8j7fgsxq6ky8r8kca726gyklbm6kljvgfh47lyfw";
2020-04-04 10:25:48 +01:00
};
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 stdenv.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;
};
}