1{ callPackage, fetchpatch2 }:
2
3let
4 juliaWithPackages = callPackage ../../julia-modules { };
5
6 wrapJulia =
7 julia:
8 julia.overrideAttrs (oldAttrs: {
9 passthru = (oldAttrs.passthru or { }) // {
10 withPackages = juliaWithPackages.override { inherit julia; };
11 };
12 });
13
14in
15
16{
17 julia_19-bin = wrapJulia (
18 callPackage (import ./generic-bin.nix {
19 version = "1.9.4";
20 sha256 = {
21 x86_64-linux = "07d20c4c2518833e2265ca0acee15b355463361aa4efdab858dad826cf94325c";
22 aarch64-linux = "541d0c5a9378f8d2fc384bb8595fc6ffe20d61054629a6e314fb2f8dfe2f2ade";
23 x86_64-darwin = "67eec264f6afc9e9bf72c0f62c84d91c2ebdfaed6a0aa11606e3c983d278b441";
24 aarch64-darwin = "67542975e86102eec95bc4bb7c30c5d8c7ea9f9a0b388f0e10f546945363b01a";
25 };
26 patches = [
27 # https://github.com/JuliaLang/julia/commit/f5eeba35d9bf20de251bb9160cc935c71e8b19ba
28 ./patches/1.9-bin/0001-allow-skipping-internet-required-tests.patch
29 ];
30 }) { }
31 );
32 julia_110-bin = wrapJulia (
33 callPackage (import ./generic-bin.nix {
34 version = "1.10.10";
35 sha256 = {
36 x86_64-linux = "6a78a03a71c7ab792e8673dc5cedb918e037f081ceb58b50971dfb7c64c5bf81";
37 aarch64-linux = "a4b157ed68da10471ea86acc05a0ab61c1a6931ee592a9b236be227d72da50ff";
38 x86_64-darwin = "942b0d4accc9704861c7781558829b1d521df21226ad97bd01e1e43b1518d3e6";
39 aarch64-darwin = "52d3f82c50d9402e42298b52edc3d36e0f73e59f81fc8609d22fa094fbad18be";
40 };
41 }) { }
42 );
43 julia_111-bin = wrapJulia (
44 callPackage (import ./generic-bin.nix {
45 version = "1.11.7";
46 sha256 = {
47 x86_64-linux = "aa5924114ecb89fd341e59aa898cd1882b3cb622ca4972582c1518eff5f68c05";
48 aarch64-linux = "f97f80b35c12bdaf40c26f6c55dbb7617441e49c9e6b842f65e8410a388ca6f4";
49 x86_64-darwin = "b2c11315df39da478ab0fa77fb228f3fd818f1eaf42dc5cc1223c703f7122fe5";
50 aarch64-darwin = "74df9d4755a7740d141b04524a631e2485da9d65065d934e024232f7ba0790b6";
51 };
52 }) { }
53 );
54 julia_19 = wrapJulia (
55 callPackage (import ./generic.nix {
56 version = "1.9.4";
57 hash = "sha256-YYQ7lkf9BtOymU8yd6ZN4ctaWlKX2TC4yOO8DpN0ACQ=";
58 patches = [
59 ./patches/1.9/0002-skip-failing-and-flaky-tests.patch
60 ];
61 }) { }
62 );
63 julia_110 = wrapJulia (
64 callPackage (import ./generic.nix {
65 version = "1.10.10";
66 hash = "sha256-/NTIGLlcNu4sI1rICa+PS/Jn+YnWi37zFBcbfMnv3Ys=";
67 patches = [
68 ./patches/1.10/0002-skip-failing-and-flaky-tests.patch
69 # Revert https://github.com/JuliaLang/julia/pull/55354
70 # [build] Some improvements to the LLVM build system
71 # Related: https://github.com/JuliaLang/julia/issues/55617
72 (fetchpatch2 {
73 url = "https://github.com/JuliaLang/julia/commit/0be37db8c5b5a440bd9a11960ae9c998027b7337.patch";
74 revert = true;
75 hash = "sha256-gXC3LE3AuHMlSdA4dW+rbAhJpSB6ZMaz9X1qrHDPX7Y=";
76 })
77 ];
78 }) { }
79 );
80 julia_111 = wrapJulia (
81 callPackage (import ./generic.nix {
82 version = "1.11.7";
83 hash = "sha256-puluy9YAV8kdx6mfwbN1F7Nhot+P0cRv/a0dm86Jln0=";
84 patches = [
85 ./patches/1.11/0002-skip-failing-and-flaky-tests.patch
86 ];
87 }) { }
88 );
89}