diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-05-31 14:38:56 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-05-31 15:49:12 +0200 |
commit | b6910c6bf8bb1b0ac596eb4cc5b8094059091ba5 (patch) | |
tree | 4d8c5e5a4c69a4541c39f0b27c0cf933c9784797 /pkgs/development/libraries/libserialport | |
parent | 215ce6259681b8696d42d2ff3f6e870d0355d41b (diff) |
libserialport: new package
libserialport is a cross-platform shared library for serial port access, written in C. It comes from the sigrok project, but has no dependency on sigrok code. Homepage: http://sigrok.org/
Diffstat (limited to 'pkgs/development/libraries/libserialport')
-rw-r--r-- | pkgs/development/libraries/libserialport/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libserialport/default.nix b/pkgs/development/libraries/libserialport/default.nix new file mode 100644 index 0000000000000..c40812beeacce --- /dev/null +++ b/pkgs/development/libraries/libserialport/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, pkgconfig, udev }: + +stdenv.mkDerivation rec { + name = "libserialport-0.1.0"; + + src = fetchurl { + url = "http://sigrok.org/download/source/libserialport/${name}.tar.gz"; + sha256 = "1bqrldwrcsv6jbq3pmqczq27gdkrzpaxwplanqs25f6q9gb5p47c"; + }; + + buildInputs = [ pkgconfig udev ]; + + meta = with stdenv.lib; { + description = "Cross-platform shared library for serial port access"; + homepage = http://sigrok.org/; + license = licenses.gpl3Plus; + # Mac OS X, Windows and Android is also supported (according to upstream). + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; +} |