From 41b59d27e4840cf033739b670be609b5dade41b2 Mon Sep 17 00:00:00 2001 From: Mauricio Collares Date: Fri, 23 Sep 2022 00:15:40 -0300 Subject: [PATCH] sage: import gap update patch --- pkgs/applications/science/math/sage/env-locations.nix | 2 +- pkgs/applications/science/math/sage/sage-src.nix | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/math/sage/env-locations.nix b/pkgs/applications/science/math/sage/env-locations.nix index 45a4799d1a03..1f8b33f68738 100644 --- a/pkgs/applications/science/math/sage/env-locations.nix +++ b/pkgs/applications/science/math/sage/env-locations.nix @@ -35,7 +35,7 @@ writeTextFile rec { export GRAPHS_DATA_DIR='${graphs}/share/graphs' export ELLCURVE_DATA_DIR='${elliptic_curves}/share/ellcurves' export POLYTOPE_DATA_DIR='${polytopes_db}/share/reflexive_polytopes' - export GAP_ROOT_DIR='${gap}/share/gap/build-dir' + export GAP_ROOT_DIR='${gap}/share/gap' export ECLDIR='${maxima.lisp-compiler}/lib/${maxima.lisp-compiler.pname}-${maxima.lisp-compiler.version}/' export COMBINATORIAL_DESIGN_DATA_DIR="${combinatorial_designs}/share/combinatorial_designs" export CREMONA_MINI_DATA_DIR="${elliptic_curves}/share/cremona" diff --git a/pkgs/applications/science/math/sage/sage-src.nix b/pkgs/applications/science/math/sage/sage-src.nix index 6cdb7919d9ea..e1d7d283dc2d 100644 --- a/pkgs/applications/science/math/sage/sage-src.nix +++ b/pkgs/applications/science/math/sage/sage-src.nix @@ -130,6 +130,14 @@ stdenv.mkDerivation rec { rev = "2816dbacb342398a23bb3099e20c92c8020ab0fa"; sha256 = "sha256-tCOsMxXwPkRg3FJGVvTqDzlWdra78UfDY6nci0Nr9GI="; }) + + # https://trac.sagemath.org/ticket/34391 + (fetchSageDiff { + name = "gap-4.12-upgrade.patch"; + base = "9.8.beta2"; + rev = "eb8cd42feb58963adba67599bf6e311e03424328"; + sha256 = "sha256-0dKewOZe2n3PqSdxCJt18FkqwTdrD0VA5MXAMiTW8Tw="; + }) ]; patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;