diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 8f1c059997..2e4c6914d8 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -627,3 +627,41 @@ including: @item SparseIntSet @end enumerate") (license license:expat))) + +(define-public julia-sortingalgorithms + (package + (name "julia-sortingalgorithms") + (version "0.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaCollections/SortingAlgorithms.jl") + (commit (string-append "v" version)))) + (file-name "SortingAlgorithms") + (sha256 + (base32 "1nz96sccgl6h6aknck59gmy1yrzx356kk9z68svj2g6yialprv1j")))) + (propagated-inputs `(("julia-datastructures" ,julia-datastructures))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'precompile 'fix-toml + (lambda* (#:key outputs source #:allow-other-keys) + (julia-create-package-toml + outputs source + "SortingAlgorithms" + "a2af1166-a08f-5f64-846c-94a0d3cef48c" + "0.3.1" + '(("DataStructures" . "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"))) + #t))))) + (build-system julia-build-system) + (home-page "https://github.com/JuliaCollections/SortingAlgorithms.jl") + (synopsis "Extra sorting algorithms extending Julia's sorting API") + (description "The SortingAlgorithms package provides three sorting +algorithms that can be used with Julia's standard sorting API: +@enumerate +@item HeapSort +@item TimSort +@item RadixSort +@end enumerate") + (license license:expat)))