lol

julia_16-bin: drop

Nick Cao 0c4b516b e957f43d

+3 -106
-72
pkgs/development/compilers/julia/1.6-bin.nix
··· 1 - { autoPatchelfHook, fetchurl, lib, stdenv }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "julia-bin"; 5 - version = "1.6.7"; 6 - 7 - src = { 8 - x86_64-linux = fetchurl { 9 - url = "https://julialang-s3.julialang.org/bin/linux/x64/${lib.versions.majorMinor version}/julia-${version}-linux-x86_64.tar.gz"; 10 - sha256 = "sha256-bEUi1ZXky80AFXrEWKcviuwBdXBT0gc/mdqjnkQrKjY="; 11 - }; 12 - }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 13 - 14 - # Julia’s source files are in different locations for source and binary 15 - # releases. Thus we temporarily create a symlink to allow us to share patches 16 - # with source releases. 17 - prePatch = '' 18 - ln -s share/julia/test 19 - ''; 20 - patches = [ 21 - # Source release Nix patch(es) relevant for binary releases as well. 22 - ./patches/1.6-bin/0005-nix-Enable-parallel-unit-tests-for-sandbox.patch 23 - ]; 24 - postPatch = '' 25 - # Revert symlink hack. 26 - rm test 27 - 28 - # Julia fails to pick up our Certification Authority root certificates, but 29 - # it provides its own so we can simply disable the test. Patching in the 30 - # dynamic path to ours require us to rebuild the Julia system image. 31 - substituteInPlace share/julia/stdlib/v${lib.versions.majorMinor version}/NetworkOptions/test/runtests.jl \ 32 - --replace '@test ca_roots_path() != bundled_ca_roots()' \ 33 - '@test_skip ca_roots_path() != bundled_ca_roots()' 34 - ''; 35 - 36 - nativeBuildInputs = [ autoPatchelfHook ]; 37 - 38 - installPhase = '' 39 - runHook preInstall 40 - cp -r . $out 41 - runHook postInstall 42 - ''; 43 - 44 - # Breaks backtraces, etc. 45 - dontStrip = true; 46 - 47 - doInstallCheck = true; 48 - preInstallCheck = '' 49 - # Some tests require read/write access to $HOME. 50 - export HOME="$TMPDIR" 51 - ''; 52 - installCheckPhase = '' 53 - runHook preInstallCheck 54 - # Command lifted from `test/Makefile`. 55 - $out/bin/julia \ 56 - --check-bounds=yes \ 57 - --startup-file=no \ 58 - --depwarn=error \ 59 - $out/share/julia/test/runtests.jl 60 - runHook postInstallCheck 61 - ''; 62 - 63 - meta = { 64 - description = "High-level, high-performance, dynamic language for technical computing"; 65 - homepage = "https://julialang.org"; 66 - # Bundled and linked with various GPL code, although Julia itself is MIT. 67 - license = lib.licenses.gpl2Plus; 68 - maintainers = with lib.maintainers; [ raskin thomasjm ]; 69 - platforms = [ "x86_64-linux" ]; 70 - mainProgram = "julia"; 71 - }; 72 - }
-1
pkgs/development/compilers/julia/default.nix
··· 12 12 in 13 13 14 14 { 15 - julia_16-bin = wrapJulia (callPackage ./1.6-bin.nix { }); 16 15 julia_19-bin = wrapJulia (callPackage 17 16 (import ./generic-bin.nix { 18 17 version = "1.9.4";
-30
pkgs/development/compilers/julia/patches/1.6-bin/0005-nix-Enable-parallel-unit-tests-for-sandbox.patch
··· 1 - From 44c2c979c4f2222567ce65f506cf47fb87482348 Mon Sep 17 00:00:00 2001 2 - From: Pontus Stenetorp <pontus@stenetorp.se> 3 - Date: Thu, 8 Apr 2021 04:37:44 +0000 4 - Subject: [PATCH 5/6] nix: Enable parallel unit tests for sandbox 5 - 6 - Disabled by default due to lack of networking in the Nix sandbox. This 7 - greatly speeds up the build process on a multi-core system. 8 - --- 9 - test/runtests.jl | 5 +++-- 10 - 1 file changed, 3 insertions(+), 2 deletions(-) 11 - 12 - diff --git a/test/runtests.jl b/test/runtests.jl 13 - index 2f9cd058bb..2f8c19fa32 100644 14 - --- a/test/runtests.jl 15 - +++ b/test/runtests.jl 16 - @@ -83,8 +83,9 @@ prepend!(tests, linalg_tests) 17 - import LinearAlgebra 18 - cd(@__DIR__) do 19 - n = 1 20 - - if net_on 21 - - n = min(Sys.CPU_THREADS, length(tests)) 22 - + if net_on || haskey(ENV, "NIX_BUILD_CORES") 23 - + x = haskey(ENV, "NIX_BUILD_CORES") ? parse(Int, ENV["NIX_BUILD_CORES"]) : Sys.CPU_THREADS 24 - + n = min(x, Sys.CPU_THREADS, length(tests)) 25 - n > 1 && addprocs_with_testenv(n) 26 - LinearAlgebra.BLAS.set_num_threads(1) 27 - end 28 - -- 29 - 2.29.3 30 -
+1
pkgs/top-level/aliases.nix
··· 766 766 jsawk = throw "'jsawk' has been removed because it is unmaintained upstream"; # Added 2028-08-07 767 767 768 768 # Julia 769 + julia_16-bin = throw "'julia_16-bin' has been removed from nixpkgs as it has reached end of life"; # Added 2024-10-08 769 770 julia_18 = throw "'julia_18' has been removed from nixpkgs as it has reached end of life"; # Added 2024-01-11 770 771 julia_18-bin = throw "'julia_18-bin' has been removed from nixpkgs as it has reached end of life"; # Added 2024-01-11 771 772
+2 -3
pkgs/top-level/all-packages.nix
··· 15178 15178 juniper = callPackage ../development/compilers/juniper { }; 15179 15179 15180 15180 inherit (callPackage ../development/compilers/julia { }) 15181 - julia_16-bin 15182 15181 julia_19-bin 15183 15182 julia_110-bin 15184 15183 julia_111-bin ··· 15186 15185 julia_110 15187 15186 julia_111; 15188 15187 15189 - julia-lts = julia_16-bin; 15188 + julia-lts = julia_110-bin; 15190 15189 julia-stable = julia_110; 15191 15190 julia = julia-stable; 15192 15191 15193 - julia-lts-bin = julia_16-bin; 15192 + julia-lts-bin = julia_110-bin; 15194 15193 julia-stable-bin = julia_110-bin; 15195 15194 julia-bin = julia-stable-bin; 15196 15195