diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2019-08-28 16:37:50 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2019-08-28 16:53:08 +0300 |
commit | de72b804f1786e75f0da00c32f43708a8ca96ee0 (patch) | |
tree | fa8b98e0e203588190a2f9ae3967c1517cbe0b24 /gnu/packages/crates-io.scm | |
parent | d154192fa99ebb10ee25ef9f53df8960a49d5c8c (diff) | |
download | guix-patches-de72b804f1786e75f0da00c32f43708a8ca96ee0.tar guix-patches-de72b804f1786e75f0da00c32f43708a8ca96ee0.tar.gz |
gnu: Add rust-threadpool.
* gnu/packages/crates-io.scm (rust-threadpool): New variable.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r-- | gnu/packages/crates-io.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1c53d80c0b..0045414077 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1560,6 +1560,30 @@ return values to @code{std::io::Result} to indicate success or failure.") (license (list license:asl2.0 license:expat)))) +(define-public rust-threadpool + (package + (name "rust-threadpool") + (version "1.7.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "threadpool" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0rd89n1q7vy47w4c32cnynibffv9kj3jy3dwr0536n9lbw5ckw72")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-num-cpus" ,rust-num-cpus)))) + (home-page "https://github.com/rust-threadpool/rust-threadpool") + (synopsis "Thread pool for running jobs on a fixed set of worker threads") + (description + "This package provides a thread pool for running a number of jobs on a +fixed set of worker threads.") + (license (list license:asl2.0 + license:expat)))) + (define-public rust-typenum (package (name "rust-typenum") |