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 4A58CJxy5F+/FAAA0tVLHw (envelope-from ) for ; Thu, 24 Dec 2020 10:51:08 +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 IHo0BJxy5F8vTQAAbx9fmQ (envelope-from ) for ; Thu, 24 Dec 2020 10:51:08 +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 F1A3A940418 for ; Thu, 24 Dec 2020 10:51:05 +0000 (UTC) Received: from localhost ([::1]:38982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ksOD2-0001c9-TA for larch@yhetil.org; Thu, 24 Dec 2020 05:51:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksDTq-0002F7-7f for help-guix@gnu.org; Wed, 23 Dec 2020 18:23:42 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:37025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksDTn-0000jZ-Nf for help-guix@gnu.org; Wed, 23 Dec 2020 18:23:42 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BAAD9A0E for ; Wed, 23 Dec 2020 18:23:36 -0500 (EST) Received: from imap1 ([10.202.2.51]) by compute4.internal (MEProxy); Wed, 23 Dec 2020 18:23:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tindall.space; h=mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=6WHACVGw+333Mjdoj5wwJm/ZPFhyzipXyKB2JGYxgiE=; b=ep1uxTHS 8ofrK45UzJSXzGXd3zfnbsDjyehmoTQ5KSokWm3eBxVkDYdEgiV2tZGECj5v0eFc 2nSCsmWlkVFJMon6GbUm+eccHWoH1GgepZpbm3irI1YWp5e/MTkqpDkO3XkBKRbg 8FUMZv5SDA1tnUUX+3Q0TbpZ8MjpZf6KtEyQ1BeyoFoDsg5gSpw/Z6TwDJLai6Yf +dOiQVTTmu+TvXig2GTP30BrI2LJwwiMMPIevyZyrs23g+B/kBArWTd7/fjF6jD5 o0ktGaeY8tObzWuOVVBEGGpYjxT0gmJFhUJr1S2DFWsiGmBZErO/5Usey5L/HESp D9mpfOy345h44w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=6WHACVGw+333Mjdoj5wwJm/ZPFhyz ipXyKB2JGYxgiE=; b=HoapLwCluNsVA58ir4KGKpmsm3JrdncY8XmA1w/ycPCWi QwoiBIVJjQQVPizF1Yk4Fwrc16a31INS2Aat+At59DHsM5j5A9gwtObxJahqydad ZLPLS5n/QIPKThISPS7RDMgnnSg6xDH5X5ScKVNzTKzlT86sjXuuTIhpafVO/ygA 6ITXR370MXCoVHJq5Ctuo1coqL72qq5wcjVOftW4W3MhC4RRxlM0CM92PdJj5woM khvpIdbx2CvpVCcSEcRWI92hVwgDvXrafB/AgdnAjeUBDvBqIJLvtt6iHLLd3JRc F759wsdIliSuqxpgEGHjDAbXqK/U92QDsWWzTYFIQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtkedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre erreejnecuhfhrohhmpeevrghmvghrohhnuceotggrmhesthhinhgurghllhdrshhprggt vgeqnecuggftrfgrthhtvghrnhepffekteekgeetfeekgeegjeelhfetheethedugfejie etteffkedtjeehhfehkedtnecuffhomhgrihhnpegtrgguugihshgvrhhvvghrrdgtohhm pdhgihhthhhusgdrtghomhdpghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpegtrghmsehtihhnuggrlhhlrdhsphgrtggv X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9A6ACC200A5; Wed, 23 Dec 2020 18:23:36 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396 Mime-Version: 1.0 Message-Id: Date: Wed, 23 Dec 2020 17:23:11 -0600 From: Cameron To: help-guix@gnu.org Subject: help with copy-build-system Received-SPF: pass client-ip=64.147.123.20; envelope-from=cam@tindall.space; helo=wout4-smtp.messagingengine.com X-Spam_score_int: 9 X-Spam_score: 0.9 X-Spam_bar: / X-Spam_report: (0.9 / 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, FROM_SUSPICIOUS_NTLD=0.5, FROM_SUSPICIOUS_NTLD_FP=1.249, HTML_MESSAGE=0.001, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 24 Dec 2020 05:50:54 -0500 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 1.18 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=tindall.space header.s=fm1 header.b=ep1uxTHS; dkim=fail (body hash did not verify) header.d=messagingengine.com header.s=fm1 header.b=HoapLwCl; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: F1A3A940418 X-Spam-Score: 1.18 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6toXemhuYJ1x Hello, I am new to Guix but it seems to be the perfect tools for running a smal= l cluster of servers that I need to administer. The one thing that so fa= r is holding me back from doing so is the absence of a package for Caddy= (https://caddyserver.com) which this cluster relies on heavily. I hope = in the future to package it properly, but it has a number of golang depe= ndencies that are not themselves even packaged, and I am far from an exp= ert on building Go software -- it seems doable but it would be a relativ= ely big undertaking. Instead, I thought I could create a private package with copy-build-syst= em and simply install the pre-built binaries that the Caddy project prov= ides. This is the caddy-package.scm that I have come up with: >=20 > (use-modules (guix) > (guix build-system copy) > (guix build utils) > (guix licenses)) >=20 >=20 > (package > (name "caddy") >=20 > (version "2.2.1") >=20 > (source > (origin > (method url-fetch) > (uri (string-append "https://github.com/caddyserver/caddy/releases/= download/" version "/caddy_" version "_linux_amd64.tar.gz")) > (sha256 > (base32 > "1va2h8hpxcby9rny7px1y2xks79rxb4svnf9mrdrlc5xn0s04dsx")))) >=20 > (build-system copy-build-system) >=20 > (arguments > '(#:install-plan '(("caddy" "bin/caddy")))) >=20 > (synopsis "This is a *BAD* Caddy package. It just pulls the already-bu= ilt binary from Github, rather than building from source.") > (description "See https://caddyserver.com/") > (home-page "https://caddyserver.com/") > (license asl2.0)) When I build this file with `guix build -f caddy-package.scm -K', it fai= ls with this rather mysterious (to me) error during the unpack phase: > starting phase `unpack' > LICENSE > README.md > caddy > Backtrace: > 8 (primitive-load "/gnu/store/fa16h805lxm1fmyhdmnwd09cpd7=E2= =80=A6") > In ice-9/eval.scm: > 191:35 7 (_ #f) > In guix/build/gnu-build-system.scm: > 838:2 6 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #= ) > In ice-9/boot-9.scm: > 1736:10 5 (with-exception-handler _ _ #:unwind? _ # _) > In srfi/srfi-1.scm: > 857:16 4 (every1 # =E2=80=A6) > In guix/build/gnu-build-system.scm: > 847:30 3 (_ _) > 164:15 2 (unpack #:source _) > 65:2 1 (first-subdirectory _) > In ice-9/boot-9.scm: > 1669:16 0 (raise-exception _ #:continuable? _) >=20 > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > Throw to key `match-error' with args `("match" "no matching pattern" (= ))'. > note: keeping build directory `/tmp/guix-build-caddy-2.2.1.drv-20' > builder for `/gnu/store/p65q2ndw8hcpiq2x62jb9mxv6xa88kkn-caddy-2.2.1.d= rv' failed with exit code 1 > build of /gnu/store/p65q2ndw8hcpiq2x62jb9mxv6xa88kkn-caddy-2.2.1.drv f= ailed > View build log at '/var/log/guix/drvs/p6/5q2ndw8hcpiq2x62jb9mxv6xa88kk= n-caddy-2.2.1.drv.bz2'. > guix build: error: build of `/gnu/store/p65q2ndw8hcpiq2x62jb9mxv6xa88k= kn-caddy-2.2.1.drv' failed Would anyone be able to give me any advice here? This seems to comport w= ith the Reference Manual blurb (https://guix.gnu.org/manual/en/guix.html= #index-copy_002dbuild_002dsystem) about copy-build-system and also appea= rs similar to several official packages using copy-build-system (e.g. gc= ide, vim-neocomplete, neverball) that I looked to as examples. Clearly t= hough, there is some nuance that I am missing. Thanks in advance for any help you can provide. -Cam Tindall