git.iko.soy/typeable/nixpkgs
on master help sign in
armadillo: Fix failing build (#17764)

The upgrade of cmake to v3.6.0 broke this build. HDF5 now can only be found if hdf5-cpp is used as buildInput. However the upgrade made it possible to remove a patch: CMake can now find openblas on its own.

commit24ab0460a9cf63a91aa3681e6f6557c05b48bf33 authorJosef Kemetmüller <josef.kemetmueller@aon.at> dateTue 16 Aug 2016, 08:29 (10 years ago) parent1759825
2 files changed+3−18
pkgs/development/libraries/armadillo/default.nix+3−4 pkgs/development/libraries/armadillo/use-OpenBLAS-as-LAPACK.patch−14
pkgs/development/libraries/armadillo/default.nix+3−4
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, cmake, openblasCompat, superlu, hdf5 }:
1+{ stdenv, fetchurl, cmake, openblasCompat, superlu, hdf5-cpp }:
22
33stdenv.mkDerivation rec {
44 version = "7.200.2";
@@ -9,12 +9,11 @@ stdenv.mkDerivation rec {
99 sha256 = "1yvx75caks477jqwx5gspi6946jialddk00wdvg6dnh5wdi2xasm";
1010 };
1111
12− buildInputs = [ cmake openblasCompat superlu hdf5 ];
12+ buildInputs = [ cmake openblasCompat superlu hdf5-cpp ];
1313
1414 cmakeFlags = [ "-DDETECT_HDF5=ON" ];
1515
16− patches = [ ./use-unix-config-on-OS-X.patch
17− ./use-OpenBLAS-as-LAPACK.patch ];
16+ patches = [ ./use-unix-config-on-OS-X.patch ];
1817
1918 meta = with stdenv.lib; {
2019 description = "C++ linear algebra library";
pkgs/development/libraries/armadillo/use-OpenBLAS-as-LAPACK.patchdeleted−14
@@ -1,14 +0,0 @@
1−diff --git a/cmake_aux/Modules/ARMA_FindLAPACK.cmake b/cmake_aux/Modules/ARMA_FindLAPACK.cmake
2−index 5395afb..a203c93 100644
3−--- a/cmake_aux/Modules/ARMA_FindLAPACK.cmake
4−+++ b/cmake_aux/Modules/ARMA_FindLAPACK.cmake
5−@@ -5,7 +5,7 @@
6− # also defined, but not for general use are
7− # LAPACK_LIBRARY, where to find the LAPACK library.
8−
9−-SET(LAPACK_NAMES ${LAPACK_NAMES} lapack)
10−+SET(LAPACK_NAMES ${LAPACK_NAMES} openblas)
11− FIND_LIBRARY(LAPACK_LIBRARY
12− NAMES ${LAPACK_NAMES}
13− PATHS /usr/lib64/atlas /usr/lib/atlas /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib
14−