3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

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
Signed by untrusted user: efraim
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