mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, cmake,
|
|
gfortran, blas, lapack}:
|
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "5.2.1";
|
|
pname = "superlu";
|
|
|
|
src = fetchurl {
|
|
url = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_${version}.tar.gz";
|
|
sha256 = "0qzlb7cd608q62kyppd0a8c65l03vrwqql6gsm465rky23b6dyr8";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake gfortran ];
|
|
|
|
propagatedBuildInputs = [ blas ];
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_SHARED_LIBS=true"
|
|
"-DUSE_XSDK_DEFAULTS=true"
|
|
];
|
|
|
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
"-Wno-error=implicit-function-declaration"
|
|
"-Wno-error=implicit-int"
|
|
];
|
|
};
|
|
|
|
patches = [
|
|
./add-superlu-lib-as-dependency-for-the-unit-tests.patch
|
|
];
|
|
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
|
|
meta = {
|
|
homepage = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/";
|
|
license = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/License.txt";
|
|
description = "Library for the solution of large, sparse, nonsymmetric systems of linear equations";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|