From mboxrd@z Thu Jan 1 00:00:00 1970 From: ison Subject: Re: Building and installing packages with modifications Date: Sun, 24 Feb 2019 11:46:20 -0700 Message-ID: <20190224184620.w2xqvaw5byjk7bnb@cf0> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxynM-00078G-Cl for help-guix@gnu.org; Sun, 24 Feb 2019 13:46:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxynL-0007v3-Jp for help-guix@gnu.org; Sun, 24 Feb 2019 13:46:36 -0500 Received: from cock.li ([2a06:1700:0:b::c0cc]:36126) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gxynK-0007th-Vn for help-guix@gnu.org; Sun, 24 Feb 2019 13:46:35 -0500 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?utf-8?B?55m944GE54aK?= Cc: help-guix@gnu.org Since this hasn't received any replies I'll give my solution, although I apologize in advance if this isn't the "best" way to do it. When I want to modify a package that I install via "guix package -i" (as opposed to using the GuixSD system configuration) I just create a new file for each such package that inherits the default package and then override any options I need. For example, in the case of curl you could make a file with the contents: -------------------- (use-modules ((guix licences) #:prefix license:) (gnu packages) (gnu packages curl) (guix packages) (guix utils))) (package (inherit curl) (substitute-keyword-arguments (package-arguments curl) ((#:tests? #f #f) #f))) -------------------- which will just inherit curl and only modify the flag "tests?" to disable tests. Everything else will be kept the same. Then if you save that to a file called my-curl.scm you could install it to your guix profile with "guix package -f my-curl.scm"