From a0a6fb15e506c926b13de80ddc20a6c12c05224e Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Tue, 13 Jul 2021 17:19:36 +0000 Subject: gnu: rust-system-deps-1: Fix version requirements. * gnu/packages/crates-io.scm (rust-system-deps-1)[source]: Add snippet to fix rust-version-compare version. [arguments]<#:phases>: Remove 'fix-version-requirements phase. Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'gnu/packages/crates-io.scm') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index a596c858ba..f017f52f14 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -45988,7 +45988,12 @@ processors, disks, components and networks.") (uri (crate-uri "system-deps" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "16v4ljmj8sj030mdcc1yk615vciqlyxi7csq6lxka6cs4qbwqghg")))) + (base32 "16v4ljmj8sj030mdcc1yk615vciqlyxi7csq6lxka6cs4qbwqghg")) + (modules '((guix build utils))) + (snippet + '(begin (substitute* "Cargo.toml" + (("0.0.10") "0.0")) + #t)))) (build-system cargo-build-system) (arguments `(#:tests? #f ;source is missing some test files @@ -46001,13 +46006,7 @@ processors, disks, components and networks.") ("rust-toml" ,rust-toml-0.5) ("rust-version-compare" ,rust-version-compare-0.0)) #:cargo-development-inputs - (("rust-itertools" ,rust-itertools-0.9)) - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-version-requirements - (lambda _ - (substitute* "Cargo.toml" - (("0.0.10") ,(package-version rust-version-compare-0.0)))))))) + (("rust-itertools" ,rust-itertools-0.9)))) (home-page "https://github.com/gdesmott/system-deps") (synopsis "Define system dependencies in @file{Cargo.toml}") (description -- cgit v1.2.3