From cb6e9e5e24c01052de2a14ddff32eaca549cf2fd Mon Sep 17 00:00:00 2001 From: Julien Dehos Date: Sun, 12 Jun 2016 02:46:08 +0200 Subject: [PATCH] armadillo: init at 7.200.1b --- .../libraries/armadillo/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/armadillo/default.nix diff --git a/pkgs/development/libraries/armadillo/default.nix b/pkgs/development/libraries/armadillo/default.nix new file mode 100644 index 000000000000..8d904efe0d66 --- /dev/null +++ b/pkgs/development/libraries/armadillo/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchurl, cmake, pkgconfig, atlas, blas, openblas}: + +stdenv.mkDerivation rec { + version = "7.200.1b"; + name = "armadillo-${version}"; + + src = fetchurl { + url = "http://sourceforge.net/projects/arma/files/armadillo-${version}.tar.xz"; + sha256 = "00s8xrywc4aipipq1zpd6q9gzqmsiv8cwd25zvb1csrpninmidvc"; + }; + + unpackCmd = [ "tar -xf ${src}" ]; + + nativeBuildInputs = [ cmake atlas blas openblas ]; + + meta = with stdenv.lib; { + description = "C++ linear algebra library"; + homepage = "http://arma.sourceforge.net" ; + license = licenses.mpl20; + platforms = stdenv.lib.platforms.linux ; + maintainers = [ stdenv.lib.maintainers.juliendehos ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8f6b40dc92f5..ca4a92c57885 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6610,6 +6610,8 @@ in # apr with db58 on freebsd (nov 2015), for unknown reasons }; + armadillo = callPackage ../development/libraries/armadillo {}; + assimp = callPackage ../development/libraries/assimp { }; asio = callPackage ../development/libraries/asio { };