From a5ed58445fb5a4a21f02fad57020ac90e2eb649b Mon Sep 17 00:00:00 2001 From: = Date: Fri, 19 Feb 2016 18:01:32 +0100 Subject: [PATCH] yarp (+ libace): init at 2.3.64 --- lib/licenses.nix | 5 +++ .../science/misc/yarp/default.nix | 26 ++++++++++++++ pkgs/development/libraries/ace/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 4 files changed, 71 insertions(+) create mode 100644 pkgs/applications/science/misc/yarp/default.nix create mode 100644 pkgs/development/libraries/ace/default.nix diff --git a/lib/licenses.nix b/lib/licenses.nix index 4703587ed565..64ba63b146a2 100644 --- a/lib/licenses.nix +++ b/lib/licenses.nix @@ -155,6 +155,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec { fullName = "Common Public License 1.0"; }; + doc = spdx { + spdxId = "DOC"; + fullName = "DOC License"; + }; + efl10 = spdx { spdxId = "EFL-1.0"; fullName = "Eiffel Forum License v1.0"; diff --git a/pkgs/applications/science/misc/yarp/default.nix b/pkgs/applications/science/misc/yarp/default.nix new file mode 100644 index 000000000000..2daf5a4b5c7d --- /dev/null +++ b/pkgs/applications/science/misc/yarp/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, pkgconfig, cmake, ace +}: + +stdenv.mkDerivation rec { + name = "yarp-${version}"; + version = "2.3.64"; + src = fetchFromGitHub { + owner = "robotology"; + repo = "yarp"; + rev = "v2.3.64"; + sha256 = "0x9sdc8d6rppzf1kx53w0yjlnmz7h75qv62yd3ls09w3cy7nb5x7"; + }; + + buildInputs = [ cmake ace ]; + + enableParallelBuilding = true; + + meta = { + description = "Yet Another Robot Platform"; + homepage = http://yarp.it; + license = stdenv.lib.licenses.lgpl21; + platforms = stdenv.lib.platforms.linux; + maintainers = [ stdenv.lib.maintainers.nico202 ]; + }; +} + diff --git a/pkgs/development/libraries/ace/default.nix b/pkgs/development/libraries/ace/default.nix new file mode 100644 index 000000000000..10ba217175c3 --- /dev/null +++ b/pkgs/development/libraries/ace/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, pkgconfig, libtool, perl +}: + +stdenv.mkDerivation rec { + name = "ace-${version}"; + version = "6.3.3"; + src = fetchurl { + url=http://download.dre.vanderbilt.edu/previous_versions/ACE-6.3.3.tar.bz2; + sha256 = "124qk205v8rx8p7rfigsargrpxjx3mh4nr99nlyk9csdc9gy8qpk"; + }; + + enableParallelBuilding = true; + + buildInputs = [ pkgconfig libtool perl ]; + + patchPhase = ''substituteInPlace ./MPC/prj_install.pl \ + --replace /usr/bin/perl "${perl}/bin/perl"''; + + preConfigure = '' + export INSTALL_PREFIX=$out + export ACE_ROOT=$(pwd) + export LD_LIBRARY_PATH="$ACE_ROOT/ace:$ACE_ROOT/lib" + echo '#include "ace/config-linux.h"' > ace/config.h + echo 'include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU'\ + > include/makeinclude/platform_macros.GNU + ''; + +meta = { + description = "ADAPTIVE Communication Environment"; + homepage = http://www.dre.vanderbilt.edu/~schmidt/ACE.html; + license = stdenv.lib.licenses.doc; + platforms = stdenv.lib.platforms.linux; + maintainers = [ stdenv.lib.maintainers.nico202 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 44c42e012a40..07793c2619c4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6889,6 +6889,8 @@ let glib_networking = callPackage ../development/libraries/glib-networking {}; + ace = callPackage ../development/libraries/ace { }; + atk = callPackage ../development/libraries/atk { }; atkmm = callPackage ../development/libraries/atkmm { }; @@ -14138,6 +14140,8 @@ let pahole = callPackage ../development/tools/misc/pahole {}; + yarp = callPackage ../applications/science/misc/yarp {}; + yed = callPackage ../applications/graphics/yed {}; ykpers = callPackage ../applications/misc/ykpers {};