GNU bug report logs -
#38408
[PATCH 0/3] (WIP) Semantic version aware recusive importer for crates
Previous Next
Reported by: Martin Becze <mjbecze <at> riseup.net>
Date: Thu, 28 Nov 2019 00:14:01 UTC
Severity: normal
Tags: patch
Merged with 44560,
44694
Fixed in version 44560
Done: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hello Guix,
I rewrote the recursive-import-semver procedure to use the new
topological-sort procedure. I also return a list instead of a stream
like (recursive-import). So to recap (recursive-import-semver) imports
dependency using semantic version to find the correct version of a
dependency. The crate importer has also be converted to use
recursive-import-semver. It will now use recursive-import-semver when
"guix import crate -r" is used. You can also specify the range that you
would like to import such as guix import crate -r rand@^0.6". Here is an
example of the format that it will produce.
(define-public rust-bincode-1.2.1
(package
(name "rust-bincode")
(version "1.2.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "bincode" version))
(file-name
(string-append name "-" version ".crate"))
(sha256
(base32
"1gvxm3n67xv1874fwxmnlircdlphlk1hcw75ykrrnw9l2nky4lsp"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build?
#t
#:cargo-inputs
(("rust-byteorder-1.3.2" ,rust-byteorder-1.3.2)
("rust-serde-1.0.103" ,rust-serde-1.0.103))))
(home-page "https://github.com/servo/bincode")
(synopsis
"A binary serialization / deserialization strategy that uses Serde
for transforming structs into bytes and vice versa!")
(description
"This package provides a binary serialization / deserialization
strategy that uses Serde for transforming structs into bytes and vice
versa!")
(license license:expat)))
-Martin
[0001-guix-import-added-recusive-import-semver.patch (text/x-diff, attachment)]
[0002-guix-import-crate-crate-recusive-import-use-recusive.patch (text/x-diff, attachment)]
[0003-guix-tests-added-tests-for-recursive-import-semver.patch (text/x-diff, attachment)]
[0004-gnu-scripts-import-crate-Remove-define-public-genera.patch (text/x-diff, attachment)]
This bug report was last modified 4 years and 217 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.