···11# all get the same sources with the same patches applied.
1213stdenv.mkDerivation rec {
14- version = "10.4";
15 pname = "sage-src";
1617 src = fetchFromGitHub {
18 owner = "sagemath";
19 repo = "sage";
20 rev = version;
21- hash = "sha256-BDO00ZSm5lnjEuA56VsY/FZyAhoG1hkFxdIlTtBZVBA=";
22 };
2324 # contains essential files (e.g., setup.cfg) generated by the bootstrap script.
···26 configure-src = fetchurl {
27 # the hash below is the tagged commit's _parent_. it can also be found by looking for
28 # 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=";
31 };
3233 # Patches needed because of particularities of nix or the way this is packaged.
···54 # fix those bugs themselves. This is for critical bugfixes, where "critical"
55 # == "causes (transient) doctest failures / somebody complained".
56 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-71 # compile libs/gap/element.pyx with -O1
72 # a more conservative version of https://github.com/sagemath/sage/pull/37951
73 ./patches/gap-element-crash.patch
···80 # should come from or be proposed to upstream. This list will probably never
81 # be empty since dependencies update all the time.
82 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- })
103 ];
104105 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;
···11# all get the same sources with the same patches applied.
1213stdenv.mkDerivation rec {
14+ version = "10.5.rc0";
15 pname = "sage-src";
1617 src = fetchFromGitHub {
18 owner = "sagemath";
19 repo = "sage";
20 rev = version;
21+ hash = "sha256-qjgEgyPOpT/g7D8YNhkqO1EHGNftZnuR5ucLNZBa9Sg=";
22 };
2324 # contains essential files (e.g., setup.cfg) generated by the bootstrap script.
···26 configure-src = fetchurl {
27 # the hash below is the tagged commit's _parent_. it can also be found by looking for
28 # the "configure" asset at https://github.com/sagemath/sage/releases/tag/${version}
29+ url = "mirror://sageupstream/configure/configure-d9c38a7c581e6ed54fbe420122b8bba488b16074.tar.gz";
30+ hash = "sha256-y1EpsuYK9wloptjeiTew+TZaIUZ2K/NKCbSteojFa4s=";
31 };
3233 # Patches needed because of particularities of nix or the way this is packaged.
···54 # fix those bugs themselves. This is for critical bugfixes, where "critical"
55 # == "causes (transient) doctest failures / somebody complained".
56 bugfixPatches = [
0000000000000057 # compile libs/gap/element.pyx with -O1
58 # a more conservative version of https://github.com/sagemath/sage/pull/37951
59 ./patches/gap-element-crash.patch
···66 # should come from or be proposed to upstream. This list will probably never
67 # be empty since dependencies update all the time.
68 packageUpgradePatches = [
0000000000000000000069 ];
7071 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;