1111# all get the same sources with the same patches applied.
1212
1313stdenv . mkDerivation rec {
14- version = "10.4 " ;
14+ version = "10.5.rc0 " ;
1515 pname = "sage-src" ;
1616
1717 src = fetchFromGitHub {
1818 owner = "sagemath" ;
1919 repo = "sage" ;
2020 rev = version ;
21- hash = "sha256-BDO00ZSm5lnjEuA56VsY/FZyAhoG1hkFxdIlTtBZVBA =" ;
21+ hash = "sha256-qjgEgyPOpT/g7D8YNhkqO1EHGNftZnuR5ucLNZBa9Sg =" ;
2222 } ;
2323
2424 # contains essential files (e.g., setup.cfg) generated by the bootstrap script.
2525 # TODO: investigate https://github.com/sagemath/sage/pull/35950
2626 configure-src = fetchurl {
2727 # the hash below is the tagged commit's _parent_. it can also be found by looking for
2828 # the "configure" asset at https://github.com/sagemath/sage/releases/tag/${version}
29- url = "mirror://sageupstream/configure/configure-3c279ec5712e0fa35c5733e03e010970727d7189 .tar.gz" ;
30- hash = "sha256-3bRlgIUSIq9tDzvI+ZfEd5LMy1qHXdItEwu1say4cx4 =" ;
29+ url = "mirror://sageupstream/configure/configure-d9c38a7c581e6ed54fbe420122b8bba488b16074 .tar.gz" ;
30+ hash = "sha256-y1EpsuYK9wloptjeiTew+TZaIUZ2K/NKCbSteojFa4s =" ;
3131 } ;
3232
3333 # Patches needed because of particularities of nix or the way this is packaged.
@@ -54,20 +54,6 @@ stdenv.mkDerivation rec {
5454 # fix those bugs themselves. This is for critical bugfixes, where "critical"
5555 # == "causes (transient) doctest failures / somebody complained".
5656 bugfixPatches = [
57- # https://github.com/sagemath/sage/pull/38628, landed in 10.5.beta4
58- ( fetchpatch {
59- name = "pari-stack-cysignals-exception.patch" ;
60- url = "https://github.com/sagemath/sage/commit/4a9c985b769b1209902c970ade1892f18ab48c10.diff" ;
61- hash = "sha256-S6NdonB7needJlQdx52Huk34Q8/vG3nyGicA5JpsdWc=" ;
62- } )
63-
64- # https://github.com/sagemath/sage/pull/38851, landed in 10.5.beta8
65- ( fetchpatch {
66- name = "glpk-aarch64-hang-workaround.patch" ;
67- url = "https://github.com/sagemath/sage/commit/ce4a78dcb4178f85273619cea076c97345977ee1.diff" ;
68- hash = "sha256-TibTx5llkXjkEZB/MDy4hfGwKBmwtitEpWP6K/ykke0=" ;
69- } )
70-
7157 # compile libs/gap/element.pyx with -O1
7258 # a more conservative version of https://github.com/sagemath/sage/pull/37951
7359 ./patches/gap-element-crash.patch
@@ -80,26 +66,6 @@ stdenv.mkDerivation rec {
8066 # should come from or be proposed to upstream. This list will probably never
8167 # be empty since dependencies update all the time.
8268 packageUpgradePatches = [
83- # https://github.com/sagemath/sage/pull/38500, landed in 10.5.beta3
84- ( fetchpatch {
85- name = "cython-3.0.11-upgrade.patch" ;
86- url = "https://patch-diff.githubusercontent.com/raw/sagemath/sage/pull/38500.diff" ;
87- hash = "sha256-ePfH3Gy1T0UfpoVd3EZowCfy88CbE+yE2MV2itWthsA=" ;
88- } )
89-
90- # https://github.com/sagemath/sage/pull/36641, landed in 10.5.beta3
91- ( fetchpatch {
92- name = "sympy-1.13.2-update.patch" ;
93- url = "https://github.com/sagemath/sage/commit/100189fa62f9a40e7aa0d856615366ea99b87aff.diff" ;
94- sha256 = "sha256-uWr3I15WByQYGVxbJFqG4zUJ7c7+4rjkcgwkAT85O7w=" ;
95- } )
96-
97- # https://github.com/sagemath/sage/pull/38250, landed in 10.5.beta0
98- ( fetchpatch {
99- name = "numpy-2.0-compat.patch" ;
100- url = "https://github.com/sagemath/sage/commit/0962e0bcb159d342e7c7d83557a71e7b670fff47.diff" ;
101- sha256 = "sha256-4SBhgPgT9VsBxcBH8+T5uYtWzYP5tZi9+iKOG55hWgI=" ;
102- } )
10369 ] ;
10470
10571 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches ;
0 commit comments