GNU bug report logs -
#31250
[PATCH] Add leiningen
Previous Next
Reported by: Charlie Ritter <chewzerita <at> posteo.net>
Date: Tue, 24 Apr 2018 15:46:02 UTC
Severity: normal
Tags: moreinfo, patch
Done: Steve George <steve <at> futurile.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello,
Charlie Ritter <chewzerita <at> posteo.net> skribis:
> From eac978c99ef288926530dcdee64cc9e3b7b8fe32 Mon Sep 17 00:00:00 2001
> From: Charlie Ritter <chewzerita <at> posteo.net>
> Date: Tue, 24 Apr 2018 11:42:39 -0400
> Subject: [PATCH] gnu: Add leiningen.
>
> * gnu/packages/java.scm (leiningen): New variable.
Good to see the family of package managers *and* Lisps grow in Guix.
:-)
> + (source (origin
> + (method url-fetch/tarbomb)
> + (uri (string-append
> + "https://github.com/technomancy/"
> + name "/archive/" version ".tar.gz"))
> + (sha256
> + (base32
> + "0hjjszxqhc9sh31dpirak3c5ws90z41ypcc16y4s1q35ydlajv3w"))))
> + (build-system ant-build-system)
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (delete 'configure)
> + (delete 'build)
> + (delete 'check)
> + (replace 'install
> + (lambda* (#:key outputs #:allow-other-keys)
> + (install-file (string-append
> + ,name "-" ,version "/bin/lein")
> + (string-append
> + (assoc-ref outputs "out") "/bin")))))))
Unfortunately installing the ‘lein’ script alone won’t cut it. The
issue is that, AIUI, the script downloads and installs pre-built Jars on
a first run (through its ‘self_install’ function).
The policy for Guix is to build things from source. So we would have to
provide Leiningen and its dependencies as packages built from source,
and to remove the auto-download functionality from the script.
That’s obviously more work. WDYT?
Thanks,
Ludo’.
This bug report was last modified 208 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.