Loading pkgs/applications/science/biology/mrtrix/default.nix +3 −36 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ fetchFromGitHub, python, makeWrapper, eigen, eigen_3_4_0, fftw, libtiff, libpng, Loading @@ -18,41 +18,8 @@ libXext, less, withGui ? true, fetchFromGitLab, fetchpatch, }: let # reverts 'eigen: 3.4.0 -> 3.4.0-unstable-2022-05-19' # https://github.com/NixOS/nixpkgs/commit/d298f046edabc84b56bd788e11eaf7ed72f8171c eigen' = ( eigen.overrideAttrs (old: rec { version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; tag = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = (old.patches or [ ]) ++ [ # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; }) ); in stdenv.mkDerivation rec { pname = "mrtrix"; version = "3.0.4-unstable-2025-04-09"; Loading @@ -74,7 +41,7 @@ stdenv.mkDerivation rec { buildInputs = [ ants eigen' eigen_3_4_0 python fftw libtiff Loading Loading @@ -113,7 +80,7 @@ stdenv.mkDerivation rec { configurePhase = '' runHook preConfigure export EIGEN_CFLAGS="-isystem ${eigen'}/include/eigen3" export EIGEN_CFLAGS="-isystem ${eigen_3_4_0}/include/eigen3" unset LD # similar to https://github.com/MRtrix3/mrtrix3/issues/1519 ./configure ${lib.optionalString (!withGui) "-nogui"}; runHook postConfigure Loading pkgs/by-name/cu/curv/package.nix +2 −30 Original line number Diff line number Diff line Loading @@ -2,13 +2,11 @@ lib, stdenv, fetchFromGitea, fetchFromGitLab, fetchpatch, cmake, git, pkg-config, boost, eigen, eigen_3_4_0, glm, libGL, libpng, Loading Loading @@ -43,33 +41,7 @@ stdenv.mkDerivation { buildInputs = [ boost # https://codeberg.org/doug-moen/curv/issues/228 # reverts 'eigen: 3.4.0 -> 3.4.0-unstable-2022-05-19' # https://github.com/nixos/nixpkgs/commit/d298f046edabc84b56bd788e11eaf7ed72f8171c (eigen.overrideAttrs (old: rec { version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; rev = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = (old.patches or [ ]) ++ [ # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; })) eigen_3_4_0 glm libGL libpng Loading pkgs/by-name/ks/kstars/package.nix +2 −33 Original line number Diff line number Diff line Loading @@ -2,12 +2,10 @@ lib, stdenv, fetchurl, fetchFromGitLab, fetchpatch, cfitsio, cmake, curl, eigen, eigen_3_4_0, gsl, indi-full, kdePackages, Loading @@ -22,35 +20,6 @@ zlib, }: let # reverts 'eigen: 3.4.0 -> 3.4.0-unstable-2022-05-19' # https://github.com/nixos/nixpkgs/commit/d298f046edabc84b56bd788e11eaf7ed72f8171c eigen' = eigen.overrideAttrs (old: rec { version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; rev = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = (old.patches or [ ]) ++ [ # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; }); in stdenv.mkDerivation (finalAttrs: { pname = "kstars"; version = "3.7.5"; Loading @@ -70,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: { breeze-icons cfitsio curl eigen' eigen_3_4_0 gsl indi-full kconfig Loading pkgs/development/libraries/eigen/3.4.0.nix 0 → 100644 +49 −0 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitLab, fetchpatch, cmake, }: stdenv.mkDerivation rec { pname = "eigen"; version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; rev = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = [ ./include-dir.patch # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; 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; }; } pkgs/development/libraries/libfive/default.nix +2 −29 Original line number Diff line number Diff line Loading @@ -3,13 +3,11 @@ stdenv, wrapQtAppsHook, fetchFromGitHub, fetchFromGitLab, fetchpatch, unstableGitUpdater, cmake, ninja, pkg-config, eigen, eigen_3_4_0, zlib, libpng, boost, Loading Loading @@ -38,32 +36,7 @@ stdenv.mkDerivation { python.pkgs.pythonImportsCheckHook ]; buildInputs = [ # reverts 'eigen: 3.4.0 -> 3.4.0-unstable-2022-05-19' # https://github.com/nixos/nixpkgs/commit/d298f046edabc84b56bd788e11eaf7ed72f8171c (eigen.overrideAttrs (old: rec { version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; rev = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = (old.patches or [ ]) ++ [ # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; })) eigen_3_4_0 zlib libpng boost Loading Loading
pkgs/applications/science/biology/mrtrix/default.nix +3 −36 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ fetchFromGitHub, python, makeWrapper, eigen, eigen_3_4_0, fftw, libtiff, libpng, Loading @@ -18,41 +18,8 @@ libXext, less, withGui ? true, fetchFromGitLab, fetchpatch, }: let # reverts 'eigen: 3.4.0 -> 3.4.0-unstable-2022-05-19' # https://github.com/NixOS/nixpkgs/commit/d298f046edabc84b56bd788e11eaf7ed72f8171c eigen' = ( eigen.overrideAttrs (old: rec { version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; tag = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = (old.patches or [ ]) ++ [ # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; }) ); in stdenv.mkDerivation rec { pname = "mrtrix"; version = "3.0.4-unstable-2025-04-09"; Loading @@ -74,7 +41,7 @@ stdenv.mkDerivation rec { buildInputs = [ ants eigen' eigen_3_4_0 python fftw libtiff Loading Loading @@ -113,7 +80,7 @@ stdenv.mkDerivation rec { configurePhase = '' runHook preConfigure export EIGEN_CFLAGS="-isystem ${eigen'}/include/eigen3" export EIGEN_CFLAGS="-isystem ${eigen_3_4_0}/include/eigen3" unset LD # similar to https://github.com/MRtrix3/mrtrix3/issues/1519 ./configure ${lib.optionalString (!withGui) "-nogui"}; runHook postConfigure Loading
pkgs/by-name/cu/curv/package.nix +2 −30 Original line number Diff line number Diff line Loading @@ -2,13 +2,11 @@ lib, stdenv, fetchFromGitea, fetchFromGitLab, fetchpatch, cmake, git, pkg-config, boost, eigen, eigen_3_4_0, glm, libGL, libpng, Loading Loading @@ -43,33 +41,7 @@ stdenv.mkDerivation { buildInputs = [ boost # https://codeberg.org/doug-moen/curv/issues/228 # reverts 'eigen: 3.4.0 -> 3.4.0-unstable-2022-05-19' # https://github.com/nixos/nixpkgs/commit/d298f046edabc84b56bd788e11eaf7ed72f8171c (eigen.overrideAttrs (old: rec { version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; rev = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = (old.patches or [ ]) ++ [ # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; })) eigen_3_4_0 glm libGL libpng Loading
pkgs/by-name/ks/kstars/package.nix +2 −33 Original line number Diff line number Diff line Loading @@ -2,12 +2,10 @@ lib, stdenv, fetchurl, fetchFromGitLab, fetchpatch, cfitsio, cmake, curl, eigen, eigen_3_4_0, gsl, indi-full, kdePackages, Loading @@ -22,35 +20,6 @@ zlib, }: let # reverts 'eigen: 3.4.0 -> 3.4.0-unstable-2022-05-19' # https://github.com/nixos/nixpkgs/commit/d298f046edabc84b56bd788e11eaf7ed72f8171c eigen' = eigen.overrideAttrs (old: rec { version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; rev = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = (old.patches or [ ]) ++ [ # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; }); in stdenv.mkDerivation (finalAttrs: { pname = "kstars"; version = "3.7.5"; Loading @@ -70,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: { breeze-icons cfitsio curl eigen' eigen_3_4_0 gsl indi-full kconfig Loading
pkgs/development/libraries/eigen/3.4.0.nix 0 → 100644 +49 −0 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitLab, fetchpatch, cmake, }: stdenv.mkDerivation rec { pname = "eigen"; version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; rev = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = [ ./include-dir.patch # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; 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; }; }
pkgs/development/libraries/libfive/default.nix +2 −29 Original line number Diff line number Diff line Loading @@ -3,13 +3,11 @@ stdenv, wrapQtAppsHook, fetchFromGitHub, fetchFromGitLab, fetchpatch, unstableGitUpdater, cmake, ninja, pkg-config, eigen, eigen_3_4_0, zlib, libpng, boost, Loading Loading @@ -38,32 +36,7 @@ stdenv.mkDerivation { python.pkgs.pythonImportsCheckHook ]; buildInputs = [ # reverts 'eigen: 3.4.0 -> 3.4.0-unstable-2022-05-19' # https://github.com/nixos/nixpkgs/commit/d298f046edabc84b56bd788e11eaf7ed72f8171c (eigen.overrideAttrs (old: rec { version = "3.4.0"; src = fetchFromGitLab { owner = "libeigen"; repo = "eigen"; rev = version; hash = "sha256-1/4xMetKMDOgZgzz3WMxfHUEpmdAm52RqZvz6i0mLEw="; }; patches = (old.patches or [ ]) ++ [ # Fixes e.g. onnxruntime on aarch64-darwin: # https://hydra.nixos.org/build/248915128/nixlog/1, # originally suggested in https://github.com/NixOS/nixpkgs/pull/258392. # # The patch is from # ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699) # which is two years old, # but Eigen hasn't had a release in two years either: # https://gitlab.com/libeigen/eigen/-/issues/2699. (fetchpatch { url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch"; hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0="; }) ]; })) eigen_3_4_0 zlib libpng boost Loading