mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: rust-rustix-0.37: Remove precompiled files.
* gnu/packages/crates-io.scm (rust-rustix-0.37)[source]: Add snippet to remove precompiled files and to not require them while building the package. (rust-rustix-0.36, rust-rustix-0.35): Inherit changes from rust-rustix-0.37.
This commit is contained in:
parent
14d87c3827
commit
f5907db6eb
1 changed files with 20 additions and 1 deletions
|
@ -56869,7 +56869,24 @@ (define-public rust-rustix-0.37
|
|||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0gb12rp992bh2h5msqcbpdsx6h1gslsb0zpp5hdnyxj2hnfp5y5c"))))
|
||||
"0gb12rp992bh2h5msqcbpdsx6h1gslsb0zpp5hdnyxj2hnfp5y5c"))
|
||||
(snippet
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(for-each delete-file (find-files "." "\\.a$"))
|
||||
(delete-file "Cargo.toml")
|
||||
(substitute* "Cargo.toml.orig"
|
||||
;; Depend unconditionally on the cc crate
|
||||
(("(cc = .*), optional = true.*" _ cc)
|
||||
(string-append cc " }\n"))
|
||||
;; Disable using the linux_raw backend
|
||||
(("not\\(rustic_use_libc\\)") "miri"))
|
||||
(substitute* "build.rs"
|
||||
;; Always use the 'feature = "cc"' path
|
||||
(("not\\(feature = \"cc\"\\)") "feature = \"foobar\"")
|
||||
(("#\\[cfg\\(feature = \"cc\"\\)\\]" all)
|
||||
(string-append "//" all)))
|
||||
(copy-file "Cargo.toml.orig" "Cargo.toml")))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
`(#:cargo-inputs
|
||||
|
@ -56908,6 +56925,7 @@ (define-public rust-rustix-0.36
|
|||
(name "rust-rustix")
|
||||
(version "0.36.13")
|
||||
(source (origin
|
||||
(inherit (package-source rust-rustix-0.37))
|
||||
(method url-fetch)
|
||||
(uri (crate-uri "rustix" version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
|
@ -56945,6 +56963,7 @@ (define-public rust-rustix-0.35
|
|||
(name "rust-rustix")
|
||||
(version "0.35.13")
|
||||
(source (origin
|
||||
(inherit (package-source rust-rustix-0.36))
|
||||
(method url-fetch)
|
||||
(uri (crate-uri "rustix" version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
|
|
Loading…
Reference in a new issue