;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Alex Vong ;;; Copyright © 2018 Pierre Neidhardt ;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; Copyright © 2020 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (clojure) #:use-module (gnu packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system ant) #:use-module (guix build-system clojure) #:use-module (guix build-system trivial) #:use-module (ice-9 match)) (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 trivial-build-system) (arguments `(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils)) (let* ((out (assoc-ref %outputs "out")) (bin-dir (string-append out "/bin/")) (source (assoc-ref %build-inputs "source")) (script-dir (string-append source "/src/main/resources/")) (scripts '("clojure" "clj"))) (mkdir out) (mkdir bin-dir) (map (lambda (script) (copy-file (string-append script-dir script) (string-append bin-dir script))) scripts))))) (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. Who would want to do that?") (home-page "https://clojure.org/") (license license:epl1.0)))