Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comedilib: init at 0.11.0 #84243

Merged
merged 1 commit into from
May 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions pkgs/development/libraries/comedilib/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{ stdenv
, fetchFromGitHub
, autoreconfHook
, flex
, yacc
, xmlto
, docbook_xsl
, docbook_xml_dtd_44
, swig
, perl
, python3
}:

stdenv.mkDerivation rec {
pname = "comedilib";
version = "0.11.0";

src = fetchFromGitHub {
owner = "Linux-Comedi";
repo = "comedilib";
rev = "r${stdenv.lib.replaceStrings [ "." ] [ "_" ] version}";
sha256 = "159sv4jdgmcaqz76vazkyxxb85ni7pg14p1qv7y94hib3kspc195";
};

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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ in

colorz = callPackage ../tools/misc/colorz { };

comedilib = callPackage ../development/libraries/comedilib { };

cpu-x = callPackage ../applications/misc/cpu-x { };

dhallToNix = callPackage ../build-support/dhall-to-nix.nix {
Expand Down