diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-05-14 17:15:37 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-05-14 17:33:20 +0200 |
commit | 2cd926d009ed543c2db6cfb79a186f22f28b68ab (patch) | |
tree | 67b7fe5cc0842f4a245cfcd084728b4a0a7167de | |
parent | 662b52d75ada78d9f8e5372096fc8e01dca6f4a3 (diff) | |
download | guix-2cd926d009ed543c2db6cfb79a186f22f28b68ab.tar.gz |
gnu: Add rust-git-version-0.3.
* gnu/packages/crates-io.scm (rust-git-version-0.3): New variable.
-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 5c3dd0726d..12f023b108 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -16480,6 +16480,30 @@ debugging format.") DWARF debugging format.") (license (list license:asl2.0 license:expat)))) +(define-public rust-git-version-0.3 + (package + (name "rust-git-version") + (version "0.3.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "git-version" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1qj1rd19v8vg094b3fj0gy6ca53v93lhrl31wg1fs7g0y61qx4cl")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-git-version-macro" ,rust-git-version-macro-0.3) + ("rust-proc-macro-hack" ,rust-proc-macro-hack-0.5)))) + (home-page "https://github.com/fusion-engineering/rust-git-version") + (synopsis "Embed git information in your code at compile-time") + (description + "This crates compiles the git version (tag name, or hash otherwise) and +dirty state into your program.") + (license license:bsd-2))) + (define-public rust-git-version-macro-0.3 (package (name "rust-git-version-macro") |