From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: References: <20170103021018.64ac3887@scratchpost.org> <20170103033234.7d3573ec@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOMmw-0002rf-QR for guix-devel@gnu.org; Tue, 03 Jan 2017 05:57:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOMmr-00017w-W2 for guix-devel@gnu.org; Tue, 03 Jan 2017 05:57:54 -0500 Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:36438) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOMmr-00017q-RA for guix-devel@gnu.org; Tue, 03 Jan 2017 05:57:49 -0500 Received: by mail-qk0-x230.google.com with SMTP id n21so365848089qka.3 for ; Tue, 03 Jan 2017 02:57:49 -0800 (PST) In-Reply-To: <20170103033234.7d3573ec@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel > Aha! It can - if one uses propagated-inputs in the package recipes. I thi= nk the importer should propagate inputs if the current package is Rust-sour= ce-only. Otherwise packages further down the dependency graph (further to t= he 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=3Dunix" 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.