From patchwork Sun Jan 16 02:40:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Reily Siegel X-Patchwork-Id: 38360 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BD03F27BBEA; Wed, 6 Apr 2022 13:43:07 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8882A27BBE9 for ; Wed, 6 Apr 2022 13:43:07 +0100 (BST) Received: from localhost ([::1]:33376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nc506-0002da-MJ for patchwork@mira.cbaines.net; Wed, 06 Apr 2022 08:43:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nc4z5-0000lJ-BT for guix-patches@gnu.org; Wed, 06 Apr 2022 08:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35175) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nc4z5-0000nu-1E for guix-patches@gnu.org; Wed, 06 Apr 2022 08:42:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nc4z4-0000Ku-Ve for guix-patches@gnu.org; Wed, 06 Apr 2022 08:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53765] [PATCH v3 07/17] gnu: Add clojure-tools-analyzer. References: <87y22r32hi.fsf@reilysiegel.com> Resent-From: Reily Siegel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Apr 2022 12:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53765 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53765@debbugs.gnu.org Cc: Maxime Devos Received: via spool by 53765-submit@debbugs.gnu.org id=B53765.16492488661056 (code B ref 53765); Wed, 06 Apr 2022 12:42:02 +0000 Received: (at 53765) by debbugs.gnu.org; 6 Apr 2022 12:41:06 +0000 Received: from localhost ([127.0.0.1]:57266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nc4yA-0000Gy-1g for submit@debbugs.gnu.org; Wed, 06 Apr 2022 08:41:06 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:49290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nc4y8-0000FJ-1b for 53765@debbugs.gnu.org; Wed, 06 Apr 2022 08:41:04 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4KYPJB2J5Vz9sZW; Wed, 6 Apr 2022 14:40:58 +0200 (CEST) From: Reily Siegel DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reilysiegel.com; s=MBO0001; t=1649248855; h=from:from: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; bh=tzb/4sB7HaarzSBMWKy9XbcjhUG3Z+63hNzLSc8Bp8M=; b=SZPdww2fjnVrUf0VKQPIrz/lQDRUoDWCgcQiC8baoI8RhxXgZzdrl9FAPFjv2EiuylC84K kW0bz0mgywY/8qN3vXV9JCXa6UgU/OOFyOsIA8tQYk7AX9W5bUlsKbF/X6qWP9y9ufVnD9 tNlMTxfMC7A14BuJ0lj15GAO6hULscsIzjX5XiysEUr00eTjOk9Oj3HQyX/xCeMFY4+nWL TOlAlyHem0MIWd70lS9AfyXvgioSKxb0v46ds4rO61x1IfMPuMQvxlj8akuGANrFRioyJF FeuJ5MrFD208ZGzaR2OUJnuBKihmRyRh0HauVBZGL14aP20v8uoADpU2fTrdMQ== In-Reply-To: Date: Sat, 15 Jan 2022 21:40:37 -0500 Message-Id: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/clojure.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index 664988f2bd..12bbbaeabe 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm @@ -632,6 +632,37 @@ (define-public clojure-tools-macro (home-page "https://github.com/clojure/tools.macro") (license license:epl1.0))) +(define-public clojure-tools-analyzer + (package + (name "clojure-tools-analyzer") + (version "1.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/clojure/tools.analyzer") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "19cgxxbav3z3k62hwl34vbi3lilrs4vksa4j8lvswha8sdjs01vh")))) + (build-system clojure-build-system) + (arguments + '(#:source-dirs '("src/main/clojure") + #:test-dirs '("src/test/clojure") + #:doc-dirs '())) + (home-page "https://github.com/clojure/tools.analyzer") + (synopsis "Analyzer for Clojure code, written in Clojure and producing +AST in EDN") + (description "An analyzer for host agnostic Clojure code, written in +Clojure and producing AST in EDN. + +Note that the analyzer in this library should not to be used directly as it +lacks any knowledge about host-specific special forms and it should only be +considered as a building platform for host-specific analyzers. Currently the +following platform specific analyzers written on top of tools.analyzer exist: +@code{tools.analyzer.jvm}, @code{tools.analyzer.js}") + (license license:epl1.0))) + (define-public clojure-tools-cli (package (name "clojure-tools-cli")