diff options
| author | Roman Scherer <roman@burningswell.com> | 2024-09-07 11:51:27 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-09-12 19:10:03 +0200 |
| commit | 80ba4b8ecb18aa1cfaade39ca5f2bb1173ddddd0 (patch) | |
| tree | d9207cea6315daed477bfadd1073457cf3a9591b /gnu/packages/clojure.scm | |
| parent | 8cb2ef0b89b1c821b10744a3b11d99a954bcb6c4 (diff) | |
gnu: Add clojure-data-priority-map.
* gnu/packages/clojure.scm (clojure-data-priority-map): New variable.
Diffstat (limited to 'gnu/packages/clojure.scm')
| -rw-r--r-- | gnu/packages/clojure.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index c3f34e61a6f..9887f1c5208 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm | |||
| @@ -423,6 +423,35 @@ writing JSON data. @code{data.xml} is compliant with the JSON spec and has no | |||
| 423 | external dependencies") | 423 | external dependencies") |
| 424 | (license license:epl1.0))) | 424 | (license license:epl1.0))) |
| 425 | 425 | ||
| 426 | (define-public clojure-data-priority-map | ||
| 427 | (package | ||
| 428 | (name "clojure-data-priority-map") | ||
| 429 | (version "1.2.0") | ||
| 430 | (source (origin | ||
| 431 | (method git-fetch) | ||
| 432 | (uri (git-reference | ||
| 433 | (url "https://github.com/clojure/data.priority-map") | ||
| 434 | (commit (string-append "v" version)))) | ||
| 435 | (file-name (git-file-name name version)) | ||
| 436 | (sha256 | ||
| 437 | (base32 | ||
| 438 | "0aynzrdl0w08q89nd069lcx8s6msqmwrpqnya63jv1l2pn3w6ij4")))) | ||
| 439 | (build-system clojure-build-system) | ||
| 440 | (arguments | ||
| 441 | '(#:source-dirs '("src/main/clojure") | ||
| 442 | #:test-dirs '("src/test/clojure") | ||
| 443 | #:doc-dirs '())) | ||
| 444 | (synopsis "Priority map implementation in Clojure") | ||
| 445 | (description | ||
| 446 | "A priority map is very similar to a sorted map, but whereas a sorted map | ||
| 447 | produces a sequence of the entries sorted by key, a priority map produces the | ||
| 448 | entries sorted by value. In addition to supporting all the functions a sorted | ||
| 449 | map supports, a priority map can also be thought of as a queue of [item | ||
| 450 | priority] pairs. To support usage as a versatile priority queue, priority | ||
| 451 | maps also support conj/peek/pop operations.") | ||
| 452 | (home-page "https://github.com/clojure/data.priority-map") | ||
| 453 | (license license:epl1.0))) | ||
| 454 | |||
| 426 | (define-public clojure-data-xml | 455 | (define-public clojure-data-xml |
| 427 | (package | 456 | (package |
| 428 | (name "clojure-data-xml") | 457 | (name "clojure-data-xml") |
