gnu: librsvg-next: Use generate-all-checksums.

* gnu/packages/gnome.scm (librsvg-next)[arguments]: Use
generate-all-checksums instead of manually traversing the directories.
This commit is contained in:
Efraim Flashner 2019-12-05 16:31:21 +02:00
parent 73bd8ab669
commit b665a24619
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -1642,15 +1642,7 @@ from forcing GEXP-PROMISE."
(use-modules (guix build cargo-utils))
(substitute* "librsvg/Cargo.toml"
(("bitflags .*") "bitflags = \"1\"\n")) ; 1.2 is vendored
(for-each
(lambda (filename)
(delete-file filename)
(let ((dir (dirname filename)))
(display (string-append
"patch-cargo-checksums: generate-checksums for "
dir "\n"))
(generate-checksums dir)))
(find-files "vendor" "\\.cargo(-checksum|_vcs_info).json"))
(generate-all-checksums "vendor")
(delete-file "Cargo.lock")
(invoke "cargo" "generate-lockfile")))
(add-before 'configure 'pre-configure