From 3a09cdb6cf78eeda6ed0205d9a7dd69e8bc1249e Mon Sep 17 00:00:00 2001 From: John Soo Date: Tue, 21 Jan 2020 09:26:05 -0800 Subject: [PATCH 2/5] gnu: Add rust-ctrlc-3.1. * gnu/packages/crates-io.scm (rust-ctrlc-3.1): New variable. --- gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 54cda8afc5..cd729f6a2b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2292,6 +2292,35 @@ intrinsics.") "Bare bones CSV parsing with no_std support.") (license (list license:unlicense license:expat)))) +(define-public rust-ctrlc-3.1 + (package + (name "rust-ctrlc") + (version "3.1.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "ctrlc" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0zz8ad4bk28s111af5vy1c5kii4zw0cgh87ivzgj28f8nkcd5py7")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-nix" ,rust-nix-0.14) + ("rust-winapi" ,rust-winapi-0.3)) + #:cargo-development-inputs + (("rust-winapi" ,rust-winapi-0.3)))) + (home-page + "https://github.com/Detegr/rust-ctrlc") + (synopsis + "Easy Ctrl-C handler for Rust projects") + (description + "Easy Ctrl-C handler for Rust projects.") + (license (list license:expat license:asl2.0)))) + (define-public rust-curl-sys-0.4 (package (name "rust-curl-sys") -- 2.25.0