guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cargo-build-system: cargo-build-flags: --cfg=unix in package recipe


From: David Craven
Subject: Re: cargo-build-system: cargo-build-flags: --cfg=unix in package recipe
Date: Tue, 3 Jan 2017 11:57:48 +0100

> Aha! It can - if one uses propagated-inputs in the package recipes. I think 
> the importer should propagate inputs if the current package is 
> Rust-source-only. Otherwise packages further down the dependency graph 
> (further to the clients) won't compile later.

One of the ideas behind the [replace] stuff in the Cargo.toml file was
to retain the required dependencies.

> However, some of the Rust crates have a "windows" target which fails.
> For these I'd like to pass "--cfg=unix" and I'd like to put it into the 
> package recipe and not hardcode it into the build system.

Nice, didn't know about this flag. That explains why it refused to
build without the windows dependencies.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]