~ruther/guix-local

1ee22f1053963972440ad55ead69d4a4ceef02e5 — Efraim Flashner 6 years ago 50de4bf
gnu: Add rust-scopeguard-1.

* gnu/packages/crates-io.scm (rust-scopeguard-1): New variable.
(rust-scopeguard-1.0): Inherit from rust-scopeguard-1.
1 files changed, 18 insertions(+), 4 deletions(-)

M gnu/packages/crates-io.scm
M gnu/packages/crates-io.scm => gnu/packages/crates-io.scm +18 -4
@@ 22627,10 22627,10 @@ library's old @code{scoped_thread_local!} macro for providing scoped access to
         (base32
          "0a2bn9d2mb07c6l16sadijy4p540g498zddfxyiq4rsqpwrglbrk"))))))

(define-public rust-scopeguard-1.0
(define-public rust-scopeguard-1
  (package
    (name "rust-scopeguard")
    (version "1.0.0")
    (version "1.1.0")
    (source
      (origin
        (method url-fetch)


@@ 22638,9 22638,8 @@ library's old @code{scoped_thread_local!} macro for providing scoped access to
        (file-name (string-append name "-" version ".crate"))
        (sha256
         (base32
          "03aay84r1f6w87ckbpj6cc4rnsxkxcfs13n5ynxjia0qkgjiabml"))))
          "1kbqm85v43rq92vx7hfiay6pmcga03vrjbbfwqpyj3pwsg3b16nj"))))
    (build-system cargo-build-system)
    (arguments '(#:skip-build? #t))
    (home-page "https://github.com/bluss/scopeguard")
    (synopsis "Scope guard which will run a closure even out of scope")
    (description "This package provides a RAII scope guard that will run a


@@ 22651,6 22650,21 @@ with one of the implemented strategies.")
    (license (list license:asl2.0
                   license:expat))))

(define-public rust-scopeguard-1.0
  (package
    (inherit rust-scopeguard-1)
    (name "rust-scopeguard")
    (version "1.0.0")
    (source
      (origin
        (method url-fetch)
        (uri (crate-uri "scopeguard" version))
        (file-name (string-append name "-" version ".crate"))
        (sha256
         (base32
          "03aay84r1f6w87ckbpj6cc4rnsxkxcfs13n5ynxjia0qkgjiabml"))))
    (arguments '(#:skip-build? #t))))

(define-public rust-scopeguard-0.3
  (package
    (inherit rust-scopeguard-1.0)