From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GGr4IAUY6l7pbAAA0tVLHw (envelope-from ) for ; Wed, 17 Jun 2020 13:17:57 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0BPNHAUY6l4XZAAAbx9fmQ (envelope-from ) for ; Wed, 17 Jun 2020 13:17:57 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1C19594001C for ; Wed, 17 Jun 2020 13:17:57 +0000 (UTC) Received: from localhost ([::1]:60594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlXww-0007Fu-Qu for larch@yhetil.org; Wed, 17 Jun 2020 09:17:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlXwh-0007Fd-GN for guix-devel@gnu.org; Wed, 17 Jun 2020 09:17:39 -0400 Received: from aibo.runbox.com ([91.220.196.211]:33600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlXwc-0001ix-SH for guix-devel@gnu.org; Wed, 17 Jun 2020 09:17:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector1; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date; bh=srBiBjM1rbw+wgmQoekohLm0F5h720gFpsuOKaZVJUo=; b=AIwEWZre93z0lSIxiT09Xdm7wc Msg+7wrvwpqwJSOUMsl88XJcl5ebQRYlCI0F8VzZGrv+JFQX7R5RIciN2mXCy6+YlkqPNZ0NfWYh3 /PbQiVVHkIImipQ6cp0FcxtFOWv5F7xUr7McFIqD0vcEzDx9E+lQlOXGcvo1NZdOB01SOf759pP1v RCCt2cPPOxQY7UnU/4l24F+vMNTU+awjcsN6BaU5aOyO1nDD3q+E8steRNqDHauaxDdUUjlLWn3lk vAdGcB2PHDjtWXeM/m/NyLE3HTe5SvLZ4XH1HFbWdxsSdD6dZq2N9yaNLqtx82eB+k9W9sqYHSXSa g4nNZ8wg==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1jlXwU-00057i-FW for guix-devel@gnu.org; Wed, 17 Jun 2020 15:17:26 +0200 Received: by submission03.runbox with esmtpsa [Authenticated alias (780724)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1jlXwM-0007C3-1l for guix-devel@gnu.org; Wed, 17 Jun 2020 15:17:18 +0200 Date: Wed, 17 Jun 2020 14:17:16 +0100 From: pkill9 To: guix-devel@gnu.org Subject: Change the '--with-source' flag to use the syntax `--with-source=PACKAGE=SOURCE` Message-ID: <20200617141716.1fb9f553@runbox.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=91.220.196.211; envelope-from=pkill9@runbox.com; helo=aibo.runbox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/17 09:17:27 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b=AIwEWZre; dmarc=pass (policy=none) header.from=runbox.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: K1OCqyvr/Gru I propose changing the `--with-source` flag to use the syntax of similar `--with-...` flags such as `--with-commit`, e.g. `--with-source=PACKAGE=SOURCE`, because currently you need to change a file to match the form "package-version.extension`, and it searches the package graph to find the package to replace the input with. It's annoying having to download a source file and change it's filename just to have it work with this flag. It would also be more consistent to match the syntax of the other flags. To illustrate, this is the section of `guix build --help` that shows the syntax of all these `--with-...` flags: ``` --with-source=SOURCE use SOURCE when building the corresponding package --with-input=PACKAGE=REPLACEMENT replace dependency PACKAGE by REPLACEMENT --with-graft=PACKAGE=REPLACEMENT graft REPLACEMENT on packages that refer to PACKAGE --with-branch=PACKAGE=BRANCH build PACKAGE from the latest commit of BRANCH --with-commit=PACKAGE=COMMIT build PACKAGE from COMMIT --with-git-url=PACKAGE=URL build PACKAGE from the repository at URL ```