Files
nixpkgs/pkgs/by-name/ei/eigen2/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

35 lines
800 B
Nix

{
lib,
stdenv,
fetchFromGitLab,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "eigen";
version = "2.0.17";
src = fetchFromGitLab {
owner = "libeigen";
repo = "eigen";
rev = finalAttrs.version;
hash = "sha256-C1Bu2H4zxd/2QVzz9AOdoCSRwOYjF41Vr/0S8Fm2kzQ=";
};
nativeBuildInputs = [ cmake ];
# CMake 2.6.2 is deprecated and is no longer supported by CMake > 4
# https://github.com/NixOS/nixpkgs/issues/445447
patches = [ ./cmake-4-build.patch ];
meta = {
homepage = "https://eigen.tuxfamily.org";
description = "C++ template library for linear algebra: vectors, matrices, and related algorithms";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [
raskin
];
platforms = lib.platforms.unix;
};
})