Files
nixpkgs/pkgs/by-name/ei/eigen/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
993 B
Nix

{
lib,
stdenv,
fetchFromGitLab,
cmake,
}:
stdenv.mkDerivation {
pname = "eigen";
version = "3.4.0-unstable-2022-05-19";
src = fetchFromGitLab {
owner = "libeigen";
repo = "eigen";
rev = "e7248b26a1ed53fa030c5c459f7ea095dfd276ac";
hash = "sha256-uQ1YYV3ojbMVfHdqjXRyUymRPjJZV3WHT36PTxPRius=";
};
patches = [
./include-dir.patch
];
# ref. https://gitlab.com/libeigen/eigen/-/merge_requests/977
# This was merged upstream and can be removed on next release
postPatch = ''
substituteInPlace Eigen/src/SVD/BDCSVD.h --replace-fail \
"if (l == 0) {" \
"if (i >= k && l == 0) {"
'';
nativeBuildInputs = [ cmake ];
meta = with lib; {
homepage = "https://eigen.tuxfamily.org";
description = "C++ template library for linear algebra: vectors, matrices, and related algorithms";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [
sander
raskin
];
platforms = platforms.unix;
};
}