diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/libraries/linbox/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/libraries/linbox/default.nix | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/libraries/linbox/default.nix b/infra/libkookie/nixpkgs/pkgs/development/libraries/linbox/default.nix index 09bd7e120911..7bca0c295c4b 100644 --- a/infra/libkookie/nixpkgs/pkgs/development/libraries/linbox/default.nix +++ b/infra/libkookie/nixpkgs/pkgs/development/libraries/linbox/default.nix @@ -14,8 +14,7 @@ assert (!blas.isILP64) && (!lapack.isILP64); stdenv.mkDerivation rec { pname = "linbox"; - version = "1.6.3"; - + version = "1.6.3"; # TODO: Check postPatch script on update src = fetchFromGitHub { owner = "linbox-team"; @@ -36,6 +35,20 @@ stdenv.mkDerivation rec { fflas-ffpack ]; + patches = [ + # Remove inappropriate `const &` qualifiers on data members that can be + # modified via member functions. + # See also: https://github.com/linbox-team/linbox/pull/256 + ./patches/linbox-pr256-part2.patch # TODO: Remove on 1.7.0 update + ]; + + postPatch = '' + # Remove @LINBOXSAGE_LIBS@ that is actually undefined. + # See also: https://github.com/linbox-team/linbox/pull/249 + # TODO: Remove on 1.7.0 update + find . -type f -exec sed -e 's/@LINBOXSAGE_LIBS@//' -i {} \; + ''; + configureFlags = [ "--with-blas-libs=-lblas" "--disable-optimization" @@ -57,12 +70,12 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - meta = { + meta = with stdenv.lib; { inherit version; description = "C++ library for exact, high-performance linear algebra"; - license = stdenv.lib.licenses.lgpl21Plus; - maintainers = [stdenv.lib.maintainers.timokau]; - platforms = stdenv.lib.platforms.unix; + license = licenses.lgpl21Plus; + maintainers = teams.sage.members; + platforms = platforms.unix; homepage = "https://linalg.org/"; }; } |