nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, cmake, blas, lapack, superlu, hdf5 }:
2
3stdenv.mkDerivation rec {
4 pname = "armadillo";
5 version = "10.6.2";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/arma/armadillo-${version}.tar.xz";
9 sha256 = "sha256-KoA9b4921AfbnBXtw4lJZSOMjliflMyQeoNz7pRXKKg=";
10 };
11
12 nativeBuildInputs = [ cmake ];
13 buildInputs = [ blas lapack superlu hdf5 ];
14
15 cmakeFlags = [
16 "-DLAPACK_LIBRARY=${lapack}/lib/liblapack${stdenv.hostPlatform.extensions.sharedLibrary}"
17 "-DDETECT_HDF5=ON"
18 ];
19
20 patches = [ ./use-unix-config-on-OS-X.patch ];
21
22 meta = with lib; {
23 description = "C++ linear algebra library";
24 homepage = "http://arma.sourceforge.net";
25 license = licenses.asl20;
26 platforms = platforms.unix;
27 maintainers = with maintainers; [ juliendehos knedlsepp ];
28 };
29}