···1111# all get the same sources with the same patches applied.
12121313stdenv.mkDerivation rec {
1414- version = "10.4";
1414+ version = "10.5.rc0";
1515 pname = "sage-src";
16161717 src = fetchFromGitHub {
1818 owner = "sagemath";
1919 repo = "sage";
2020 rev = version;
2121- hash = "sha256-BDO00ZSm5lnjEuA56VsY/FZyAhoG1hkFxdIlTtBZVBA=";
2121+ hash = "sha256-qjgEgyPOpT/g7D8YNhkqO1EHGNftZnuR5ucLNZBa9Sg=";
2222 };
23232424 # contains essential files (e.g., setup.cfg) generated by the bootstrap script.
···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}
2929- url = "mirror://sageupstream/configure/configure-3c279ec5712e0fa35c5733e03e010970727d7189.tar.gz";
3030- hash = "sha256-3bRlgIUSIq9tDzvI+ZfEd5LMy1qHXdItEwu1say4cx4=";
2929+ url = "mirror://sageupstream/configure/configure-d9c38a7c581e6ed54fbe420122b8bba488b16074.tar.gz";
3030+ hash = "sha256-y1EpsuYK9wloptjeiTew+TZaIUZ2K/NKCbSteojFa4s=";
3131 };
32323333 # Patches needed because of particularities of nix or the way this is packaged.
···5454 # fix those bugs themselves. This is for critical bugfixes, where "critical"
5555 # == "causes (transient) doctest failures / somebody complained".
5656 bugfixPatches = [
5757- # https://github.com/sagemath/sage/pull/38628, landed in 10.5.beta4
5858- (fetchpatch {
5959- name = "pari-stack-cysignals-exception.patch";
6060- url = "https://github.com/sagemath/sage/commit/4a9c985b769b1209902c970ade1892f18ab48c10.diff";
6161- hash = "sha256-S6NdonB7needJlQdx52Huk34Q8/vG3nyGicA5JpsdWc=";
6262- })
6363-6464- # https://github.com/sagemath/sage/pull/38851, landed in 10.5.beta8
6565- (fetchpatch {
6666- name = "glpk-aarch64-hang-workaround.patch";
6767- url = "https://github.com/sagemath/sage/commit/ce4a78dcb4178f85273619cea076c97345977ee1.diff";
6868- hash = "sha256-TibTx5llkXjkEZB/MDy4hfGwKBmwtitEpWP6K/ykke0=";
6969- })
7070-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
···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 = [
8383- # https://github.com/sagemath/sage/pull/38500, landed in 10.5.beta3
8484- (fetchpatch {
8585- name = "cython-3.0.11-upgrade.patch";
8686- url = "https://patch-diff.githubusercontent.com/raw/sagemath/sage/pull/38500.diff";
8787- hash = "sha256-ePfH3Gy1T0UfpoVd3EZowCfy88CbE+yE2MV2itWthsA=";
8888- })
8989-9090- # https://github.com/sagemath/sage/pull/36641, landed in 10.5.beta3
9191- (fetchpatch {
9292- name = "sympy-1.13.2-update.patch";
9393- url = "https://github.com/sagemath/sage/commit/100189fa62f9a40e7aa0d856615366ea99b87aff.diff";
9494- sha256 = "sha256-uWr3I15WByQYGVxbJFqG4zUJ7c7+4rjkcgwkAT85O7w=";
9595- })
9696-9797- # https://github.com/sagemath/sage/pull/38250, landed in 10.5.beta0
9898- (fetchpatch {
9999- name = "numpy-2.0-compat.patch";
100100- url = "https://github.com/sagemath/sage/commit/0962e0bcb159d342e7c7d83557a71e7b670fff47.diff";
101101- sha256 = "sha256-4SBhgPgT9VsBxcBH8+T5uYtWzYP5tZi9+iKOG55hWgI=";
102102- })
10369 ];
1047010571 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;