From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: cargo-build-system: cargo-build-flags: --cfg=unix in package recipe Date: Tue, 03 Jan 2017 11:19:55 +0000 Message-ID: <8737h0wftw.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <20170103021018.64ac3887@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cON8h-0006pq-3X for guix-devel@gnu.org; Tue, 03 Jan 2017 06:20:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cON8d-00062N-4P for guix-devel@gnu.org; Tue, 03 Jan 2017 06:20:23 -0500 Received: from aibo.runbox.com ([91.220.196.211]:34749) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cON8c-0005zM-Tr for guix-devel@gnu.org; Tue, 03 Jan 2017 06:20:19 -0500 In-Reply-To: <20170103021018.64ac3887@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@gnu.org Danny Milosavljevic writes: > Hi, > > so it seems I got the cargo-build-system to work for large-ish Rust dependency trees now. It still can't pick up transitive dependencies but hey :P > > 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. > > I saw that there's a "cargo-build-flags" parameter. However, specifying it like > > (arguments > `(#:cargo-build-flags '("--cfg=unix" "--release"))) > > gives me "invalid keyword argument"... > > Why? > > It does indeed, and this would fix the bug I filed. I've cut down the number of crates I packaged from 160 to 81 just by removing the *32-sys and winapi dependencies after reading a bit about the system. -- ♥Ⓐ ng0 PGP keys and more: https://n0is.noblogs.org/ http://ng0.chaosnet.org