From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sPr2F4fXZmN86gAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 22:37:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2CIRF4fXZmOiCgEAG6o9tA (envelope-from ) for ; Sat, 05 Nov 2022 22:37:11 +0100 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 E53833CC15 for ; Sat, 5 Nov 2022 22:37:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orQqN-0006mR-54; Sat, 05 Nov 2022 17:36:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orQqM-0006lx-3q for help-guix@gnu.org; Sat, 05 Nov 2022 17:36:46 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orQqJ-0000vD-Qs for help-guix@gnu.org; Sat, 05 Nov 2022 17:36:45 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id ACD0B4117C; Sat, 5 Nov 2022 22:36:39 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vWZyibJ9e7Gc; Sat, 5 Nov 2022 22:36:38 +0100 (CET) References: <87tu3is3kd.fsf@reckondigital.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1667684198; bh=LZ9mkCD7SpLPAvH61J2JrUgK2QrNehUDprIiHf7WTP8=; h=References:Date:From:To:Cc:Subject:In-reply-to:From; b=YeV5NSxhp4ocYkh+iw1I3wDPIpexuOpdImCmCCNGOfYsc2EObZKnBgCGjxjY/XOm2 oTcZLaClx5YzmddJmFkCE54gtmK5xIkLzSnnIJyrTe/xDQ/pT5FF5tQ0/9TK0q+saO MAGY/XTM6i/J8blHZYENhJ2VZ4MW2/R2Wlg+EOC3OQknKdai6pOiHCsEarFPcIDG7e ONeFmlb1CzQvXCoLbk6nsyRWKzjNgCcf39eYw0H/fCHrA4zVm/CNoeRQIZjBmkZgUi ihSCFgdivxT8YYXTlW92OLSWUR8w6K004lTYXpNlT0fdxFLDytGbpg6WboNwarn285 bZVcOLYzPHa8g== Date: Sat, 05 Nov 2022 14:50:42 -0400 From: Gary Johnson To: Fabio Natali Cc: help-guix@gnu.org Subject: Re: Help request for new Clojure package definition In-reply-to: <87tu3is3kd.fsf@reckondigital.com> Message-ID: <87tu3dccdb.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Help-Guix" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667684231; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cqR3/QXO9qkEFnxYCCFnISvBXxEletSdKST/46+z16g=; b=e1MBTDDuFlpcXOxbIdqveslufIuaHpzYMuvWsciOn6XietTDFBh9Nts8zVTAgVWxjUjVDr ddfHIb7KTvetB7aj2CO7VL2k7vnUeyygIOhLPSOhAESebJL+2szW3N6yeUA6SmjQKfM0ZH R/4CqlJvhNzXm/M2SKgW3iXsJ2cIVgfD0e3OEXUCGIEax8WJedoES/DcZi7UUK6Kk1QlDv bfgaonbY40UChWVDjsM3wsAssaT7uq4Hdtj85wvDaOr8fClfFYPC4+7SuOq5G6TxwnQP7X LbZerqE77s8QL+Fjcv4faMRxSLHLhfzmlfSuMvqnYYK31TPx2t4lJif6Dq7/aw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667684231; a=rsa-sha256; cv=none; b=bre0s6Q1/SbMKzR0wvGxVmZlrP+bDhKpxm1b1hzixJ2aL/qnGjuPlK72am3Sp6H/Y3sX2d 2fZAvFCVUFG0Vbjeyw8XkUvax2TujGUqafFClBfVx0efwx/psTZfNUSQMzKUVFg9/0hMy7 XM3s3VgkUUxhculR8eNIJBC9fO/5bhnsGFVZWvthiA4k1j7UebodDOHHa1B24SPWvtULG+ M8ds2KukyJ8Ws1QmyVOz0Z7+1bzbscs8ucKALnk8Wm/7d4mlv5DEoMb7OMOeTsPl55LNvl nAxs1kvLeOyC1v7ghYVvrt2XIF+ra4pCErH2jYXkwxFbwIhnLfEcgbq1Zll9pg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=YeV5NSxh; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=YeV5NSxh; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E53833CC15 X-Spam-Score: -2.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: UUKsfiphPtr3 Fabio Natali writes: > I'm trying to package Riddley [0], apparently a dependency for a Clojure > package I'm interested in. > > I haven't done much - I started from one of the existing Clojure > definitions as an example and I went through a few iterations of > "build-fail-fix-repeat" until I reached the version below. Then I hit a > wall. > > #+begin_src scheme > (define-public clojure-riddley > (package > (name "clojure-riddley") > (version "0.2.0") > (home-page "https://github.com/ztellman/riddley") > (source (origin > (method git-fetch) > (uri (git-reference > (url home-page) > (commit version))) > (file-name (git-file-name name version)) > (sha256 > (base32 > "1wpcjxsryzv36bf7ld0y9dw38dqhgji0wb8gsim6dmkgynbmz3q2")))) > (build-system clojure-build-system) > (arguments > '(#:source-dirs '("src/riddley") > #:java-source-dirs '("src/riddley") > #:test-dirs '("test/riddley") > #:doc-dirs '())) > (synopsis "A Clojure library for walking and transforming code") > (description "This library provides a correct > @code{riddley.walk/macroexpand-all}, which preserves the binding information in > @code{&env} and expands inlined functions, and @code{riddley.walk/walk-exprs}, > which is a general mechanism for code walking and transformation.") > (license license:expat))) > #+end_src > Hi Fabio, You are quite close. Remember that #:source-dirs and #:test-dirs are added to the Java classpath when building and running your Clojure programs. Because the Clojure namespaces in the clojure-riddley package are riddley.compiler and riddley.walk, you have to make sure not to include "riddley" in the #:source-dirs or #:test-dirs paths. Here is an updated package definition that successfully builds on my machine with the current version of Guix: #+begin_src clojure (define-public clojure-riddley (package (name "clojure-riddley") (version "0.2.0") (home-page "https://github.com/ztellman/riddley") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1wpcjxsryzv36bf7ld0y9dw38dqhgji0wb8gsim6dmkgynbmz3q2")))) (build-system clojure-build-system) (arguments '(#:source-dirs '("src") #:java-source-dirs '("src/riddley") #:test-dirs '("test") #:doc-dirs '())) (synopsis "A Clojure library for walking and transforming code") (description "This library provides a correct @code{riddley.walk/macroexpand-all}, which preserves the binding information in @code{&env} and expands inlined functions, and @code{riddley.walk/walk-exprs}, which is a general mechanism for code walking and transformation.") (license expat))) #+end_src -- GPG Key ID: 7BC158ED Use `gpg --search-keys lambdatronic' to find me Protect yourself from surveillance: https://emailselfdefense.fsf.org ======================================================================= () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html