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 a59ad573be8b..3331f6d6b03c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6612,6 +6612,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 { };