gnu: Add rust-permutohedron.
authorEfraim Flashner <efraim@flashner.co.il>
Wed, 28 Aug 2019 13:10:06 +0000 (16:10 +0300)
committerEfraim Flashner <efraim@flashner.co.il>
Wed, 28 Aug 2019 13:53:05 +0000 (16:53 +0300)
* gnu/packages/crates-io.scm (rust-permutohedron): New variable.

gnu/packages/crates-io.scm

index 3bdf1ce..e793bd7 100644 (file)
@@ -860,6 +860,28 @@ the @code{take_while} predicate returned false after dropping the @code{by_ref}.
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-permutohedron
+  (package
+    (name "rust-permutohedron")
+    (version "0.2.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "permutohedron" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "0b1pzh48j86v46wxngch6k1kx9cdw3jr3lwa86gd6jd4bmxzz1xn"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/bluss/permutohedron")
+    (synopsis "Generate permutations of sequences")
+    (description
+     "Generate permutations of sequences.  Either lexicographical order
+permutations, or a minimal swaps permutation sequence implemented using Heap's
+algorithm.")
+    (license (list license:asl2.0
+                   license:expat))))
+
 (define-public rust-pin-utils
   (package
     (name "rust-pin-utils")