nixpkgs/pkgs/development/libraries/armadillo/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

30 lines
830 B
Nix

{ stdenv, fetchurl, cmake, openblasCompat, superlu, hdf5 }:
stdenv.mkDerivation rec {
version = "9.600.5";
pname = "armadillo";
src = fetchurl {
url = "mirror://sourceforge/arma/armadillo-${version}.tar.xz";
sha256 = "1gy2rb3klvzx833851qgsbh5k1ds5zffwk0rmy1k8b1g51jdd76x";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ openblasCompat superlu hdf5 ];
cmakeFlags = [
"-DLAPACK_LIBRARY=${openblasCompat}/lib/libopenblas${stdenv.hostPlatform.extensions.sharedLibrary}"
"-DDETECT_HDF5=ON"
];
patches = [ ./use-unix-config-on-OS-X.patch ];
meta = with stdenv.lib; {
description = "C++ linear algebra library";
homepage = http://arma.sourceforge.net;
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ juliendehos knedlsepp ];
};
}