mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
70 lines
1.6 KiB
Nix
70 lines
1.6 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
lapack,
|
|
which,
|
|
gfortran,
|
|
blas,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "qrupdate";
|
|
version = "1.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mpimd-csc";
|
|
repo = "qrupdate-ng";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-dHxLPrN00wwozagY2JyfZkD3sKUD2+BcnbjNgZepzFg=";
|
|
};
|
|
|
|
cmakeFlags =
|
|
assert (blas.isILP64 == lapack.isILP64);
|
|
[
|
|
"-DCMAKE_Fortran_FLAGS=${
|
|
toString (
|
|
[
|
|
"-std=legacy"
|
|
]
|
|
++ lib.optionals blas.isILP64 [
|
|
# If another application intends to use qrupdate compiled with blas with
|
|
# 64 bit support, it should add this to it's FFLAGS as well. See (e.g):
|
|
# https://savannah.gnu.org/bugs/?50339
|
|
"-fdefault-integer-8"
|
|
]
|
|
)
|
|
}"
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# prevent cmake from using Accelerate, which causes all tests to segfault
|
|
"-DBLA_VENDOR=Generic"
|
|
];
|
|
|
|
# https://github.com/mpimd-csc/qrupdate-ng/issues/4
|
|
patches = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
|
|
./disable-zch1dn-test.patch
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
which
|
|
gfortran
|
|
];
|
|
buildInputs = [
|
|
blas
|
|
lapack
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for fast updating of qr and cholesky decompositions";
|
|
homepage = "https://github.com/mpimd-csc/qrupdate-ng";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|