From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wBnnDDGNiWBA1AAAgWs5BA (envelope-from ) for ; Wed, 28 Apr 2021 18:28:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WCxfCDGNiWB5VwAAbx9fmQ (envelope-from ) for ; Wed, 28 Apr 2021 16:28:33 +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 3A67010208 for ; Wed, 28 Apr 2021 18:28:32 +0200 (CEST) Received: from localhost ([::1]:58722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbn39-00060C-BW for larch@yhetil.org; Wed, 28 Apr 2021 12:28:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbmuy-0002q9-3k for bug-guix@gnu.org; Wed, 28 Apr 2021 12:20:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbmux-0000Tx-Q8 for bug-guix@gnu.org; Wed, 28 Apr 2021 12:20:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbmuw-0001xW-Ks for bug-guix@gnu.org; Wed, 28 Apr 2021 12:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48082: =?UTF-8?Q?=E2=80=9Cguix?= environment =?UTF-8?Q?-l=E2=80=9D?= does not work with inferior packages Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Apr 2021 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48082@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16196267897503 (code B ref -1); Wed, 28 Apr 2021 16:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Apr 2021 16:19:49 +0000 Received: from localhost ([127.0.0.1]:53893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbmuj-0001wx-Gr for submit@debbugs.gnu.org; Wed, 28 Apr 2021 12:19:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:33384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbmuh-0001wp-D8 for submit@debbugs.gnu.org; Wed, 28 Apr 2021 12:19:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbmuh-0002KE-0H for bug-guix@gnu.org; Wed, 28 Apr 2021 12:19:47 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbmue-0000Aw-RQ for bug-guix@gnu.org; Wed, 28 Apr 2021 12:19:46 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1619626777; cv=none; d=zohomail.com; s=zohoarc; b=gXZPAkDe8LyEqLdZsLWbtorD8C3ncY3uJQD+wmW/7EEZnG9h6mpYsR/D/X+G4T9a092X1QCBhtFMpNBr1wWQGHnWNkZQYqWL8l0VFWALDyzMpwE7zxvdeOkntkpiguNprsL8qpFW/BsQZob3lS23xvGQTMF6ss8cOKq1yNOC5E4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1619626777; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=t+MCmA/0UXsRoff4pFGkvWRM9IBIKIux7anRca3bjuo=; b=iVg9HQIm6SZQPUGymnJifigibdZIfz2yP8300zYAFd4zUsueL1H59gKelbhC/qLMuzr8B0KRnGprLJgf4bqnk73ZsL83sW5mccAYM5qfsS+kfV/cs5HsS6Acb141uaMT037Z/nJ2NCKutViaJRarcTiFgjV4c/nZDb1O3o4ToEA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1619626777; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=t+MCmA/0UXsRoff4pFGkvWRM9IBIKIux7anRca3bjuo=; b=dBYgFvMKUiyXS1Ciivj0/FCana/9OVSI9fF8TMPMcMHZiiE66HAuqQFfHHsQCu5Y MRcVT+z0gesNeOGaJEwolafiR8WIBuKqpwBwUSThwMnZvyX2bxW0RktjGaaCJmwSpPr ObgQHBbR0mFW4+F4/U629mgQ37gqMALbqoUoDTcI= Received: from localhost (p54ad4f2c.dip0.t-ipconnect.de [84.173.79.44]) by mx.zohomail.com with SMTPS id 1619626774569708.136225474451; Wed, 28 Apr 2021 09:19:34 -0700 (PDT) User-agent: mu4e 1.4.15; emacs 27.2 From: Ricardo Wurmus X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 28 Apr 2021 18:19:31 +0200 Message-ID: <878s52nzzg.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619627312; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=t+MCmA/0UXsRoff4pFGkvWRM9IBIKIux7anRca3bjuo=; b=ssMW3/1KAGAhb6p/+1k1hb/Yzfc0LQ6pd2rALIEfZoz8rxQBOCJtkDgWxpU/0pYt5j1UH1 yrzwBZduGE+4SKb/CIDvwGD0fcPM/uSdwFVIIg/D7qI3rbcTRMaK/LlDdjrMwlgTEVV2HM rY4H8naEcZui+uxTEKV4Iupw04uGB9toZeBQQMjhgzZZY7ff1XTsxm7zbSNt5Qwd06MuqT M/TPH61K/YJQBa2oOFSGYKvs4YQy2yr4vdpm/T0syd2rmazOLOlYZ00Dt57mfjvBGl/sDK kikKoEJSTAIRiyfGE99y2J/hGSfxUbGRz10eICQiejkEiMoSarMIqt39PVUCaQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1619627312; a=rsa-sha256; cv=fail; b=NBUXDcp38TsZk0bO8bNIUdRmwQvSFxUq0hUA+xnoJ8qSQUVgmyQ1F7QkiFgPK5mRO4wcmg cUqYCU0QXGfBUD2svBRcZxHi9vkTRUPAoEktfL/c/6OGgh500uErU5+X3IdcrfGXXLOP+T OKuejrg1eYvF8e/HgANAN352RoE7cqWO7pkfCo2NAtst1ak3hoaaQmGI5JBcAqwv9/+ySW Pys14CLpcz8wL8V5TQtXsNfKuFBCZ+GECom5S9hX4BiUpYs55HASYPqxrn3HCmd4Zu9zB6 nzZJ8qFD7FJ9zmWu81rYVgbLaMV4LRqKt25eIdLaChZISxs4YWibso3PSGHc0Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=dBYgFvMK; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.55 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=dBYgFvMK; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 3A67010208 X-Spam-Score: 0.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: L+wBE9DPG81T I wanted to use an environment file that contains a package=20 definition, and use it with inferiors. Here is the full guix.scm: --8<---------------cut here---------------start------------->8--- (use-modules (guix channels) (guix inferior) (guix build-system gnu) (guix packages) (guix licenses) (gnu packages) (ice-9 match)) (define channels (list (channel (name 'guix-bimsb) (url "https://github.com/BIMSBbioinfo/guix-bimsb.git") (commit "be42b099867a29a68a9ffbf304dc7f9137b75fe3")) (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "01e33a031e493477d930b9383d397fea012a3b1a") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A=20 54FA")))))) (define (lookup name) (specification->package name)) (define (lookup-inferior name) (define inferior (inferior-for-channels channels)) (match (lookup-inferior-packages inferior name) ((first . rest) first) (_ (error (format #false "Could not find package `~a'.~%" name))))) (define (p name) (let* ((how (if (getenv "USE_GUIX_INFERIOR") lookup-inferior lookup)) (pkg (how name))) `(,name ,pkg))) (define %version (symbol->string (with-input-from-file "VERSION" read))) (define-public my-package (package (name "my-package") (version %version) (source (string-append (getcwd) "/my-package-" version ".tar.gz")) (build-system gnu-build-system) (inputs (map p (list "bwa" "r-minimal" "r-rmarkdown" "python-wrapper" "python-pyyaml"))) (native-inputs (map p (list "autoconf" "automake"))) (home-page "TODO") (synopsis "TODO") (description "TODO") (license gpl3+))) my-package --8<---------------cut here---------------end--------------->8--- The idea was that you would use the provided channels with USE_GUIX_INFERIOR=3Dt guix environment -l guix.scm Unfortunately, this does not work, but there also is no error. I=20 end up in an environment where none of the declared inputs are=20 available. That=E2=80=99s because (guix scripts environments) has no=20 facilities to deal with packages that are of type=20 . --=20 Ricardo