From patchwork Mon Feb 17 11:12:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre Neidhardt X-Patchwork-Id: 20291 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 78B5F27BBE4; Mon, 17 Feb 2020 11:13:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 0E30617B44 for ; Mon, 17 Feb 2020 11:13:16 +0000 (GMT) Received: from localhost ([::1]:43656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3eKx-0006oN-Gt for patchwork@mira.cbaines.net; Mon, 17 Feb 2020 06:13:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36767) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3eKl-0006oF-R1 for guix-patches@gnu.org; Mon, 17 Feb 2020 06:13:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3eKk-0004zT-MG for guix-patches@gnu.org; Mon, 17 Feb 2020 06:13:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60314) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3eKk-0004zN-Im for guix-patches@gnu.org; Mon, 17 Feb 2020 06:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3eKk-00057P-FF for guix-patches@gnu.org; Mon, 17 Feb 2020 06:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39599] [PATCH 3/4] gnu: Add clojure-wrapper. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Feb 2020 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39599 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39599@debbugs.gnu.org Received: via spool by 39599-submit@debbugs.gnu.org id=B39599.158193795419619 (code B ref 39599); Mon, 17 Feb 2020 11:13:02 +0000 Received: (at 39599) by debbugs.gnu.org; 17 Feb 2020 11:12:34 +0000 Received: from localhost ([127.0.0.1]:38049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3eKH-00056G-VP for submit@debbugs.gnu.org; Mon, 17 Feb 2020 06:12:34 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:48143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3eKF-00055d-Fe for 39599@debbugs.gnu.org; Mon, 17 Feb 2020 06:12:32 -0500 X-Originating-IP: 92.169.129.147 Received: from bababa.home (lfbn-idf2-1-1315-147.w92-169.abo.wanadoo.fr [92.169.129.147]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id EF06B20008 for <39599@debbugs.gnu.org>; Mon, 17 Feb 2020 11:12:29 +0000 (UTC) From: Pierre Neidhardt Date: Mon, 17 Feb 2020 12:12:27 +0100 Message-Id: <20200217111228.23716-3-mail@ambrevar.xyz> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200217111228.23716-1-mail@ambrevar.xyz> References: <20200214125144.4185-1-mail@ambrevar.xyz> <20200217111228.23716-1-mail@ambrevar.xyz> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 (clojure-wrapper): New variable. --- gnu/packages/clojure.scm | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index 9a1ceed66c..f34e4dadab 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm @@ -1,8 +1,9 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Alex Vong -;;; Copyright © 2018 Pierre Neidhardt +;;; Copyright © 2018, 2020 Pierre Neidhardt ;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; Copyright © 2020 Ludovic Courtès +;;; Copyright © 2020 Jesse Gibbons ;;; ;;; This file is part of GNU Guix. ;;; @@ -27,6 +28,7 @@ #:use-module (guix git-download) #:use-module (guix build-system ant) #:use-module (guix build-system clojure) + #:use-module (guix build-system copy) #:use-module (ice-9 match)) (define-public clojure @@ -321,3 +323,29 @@ tree. "The @code{tools.cli} library provides Clojure programmers with tools to work with command-line arguments.") (license license:epl1.0))) + +(define-public clojure-wrapper + (package + (name "clojure-wrapper") + (version "1.10.1.507") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/clojure/brew-install.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zipz22pszv4vls4qhxkia8gm86s1wkahr0jdbqhc46mpd8n54fz")))) + (build-system copy-build-system) + (arguments + `(#:install-plan + `(("src/main/resources/" "bin/" #:include ("clj" "clojure")) + ("doc/clojure.1" "share/man/man1/") + ("epl.html" ,,(string-append "share/doc/clojure-" (package-version clojure) "/"))))) + (synopsis "Clojure launch scripts") + (description "Scripts to launch Clojure from the command line. +Without these scripts a user would need to run jar with the Clojure jar's +location.") + (home-page "https://clojure.org/") + (license license:epl1.0)))