unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Steve Sprang <steve.sprang@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add erlang.
Date: Fri, 12 Feb 2016 19:44:46 -0500	[thread overview]
Message-ID: <20160213004446.GB13163@jasmine> (raw)
In-Reply-To: <CA+xn8YCBfR9nQ+CcfvQrGBy3Wamb3=kTqVik8xu_LA3jC7xfJQ@mail.gmail.com>

On Sat, Feb 06, 2016 at 12:45:39PM -0800, Steve Sprang wrote:
> It looks like downloading the tarball from erlang.org works now.
> Here's an improved patch.

I wonder, do you happen to have any Erlang programs packaged that I can
test this with? Or, would they require the creation of a full
erlang-build-system?

Otherwise, the patch LGTM with a couple minor stylistic changes.

> From 0a1a045ef67e5e70d003c230c72b78a13e38b69b Mon Sep 17 00:00:00 2001
> From: Steve Sprang <scs@stevesprang.com>
> Date: Sat, 6 Feb 2016 12:40:53 -0800
> Subject: [PATCH] gnu: Add erlang.
> 
> * gnu/packages/erlang.scm: New file.
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.

Awesome, there is some Erlang software I'd like to package :) Thanks for
working on this.

> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +	 (add-after
> +	     'patch-source-shebangs 'patch-source-env

I would put these phase names on the same line as 'add-after' or
directly below the first character of 'add-after'

> +	   (lambda* _
> +	     (let ((escripts
> +		    (append
> +		     (find-files "." "\\.escript")
> +		     (find-files "lib/stdlib/test/escript_SUITE_data/")
> +		     '("erts/lib_src/utils/make_atomics_api"
> +		       "erts/preloaded/src/add_abstract_code"
> +		       "lib/diameter/bin/diameterc"
> +		       "lib/reltool/examples/display_args"
> +		       "lib/reltool/examples/mnesia_core_dump_viewer"
> +		       "lib/snmp/src/compile/snmpc.src"
> +		       "make/verify_runtime_dependencies"
> +		       "make/emd2exml.in"))))
> +	       (substitute* escripts
> +		 (("/usr/bin/env") (which "env"))))))
> +         (add-before
> +             'configure 'set-erl-top
> +           (lambda* _
> +             (setenv "ERL_TOP" (getcwd)))))

I _think_ that 'lambda _' would be appropriate here. I need a real
Schemer to weigh in ;)

  reply	other threads:[~2016-02-13  0:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-04  3:56 [PATCH] gnu: Add erlang Steve Sprang
2016-01-04  4:39 ` Leo Famulari
2016-01-04  5:20   ` Steve Sprang
2016-01-04  6:23     ` Leo Famulari
2016-01-04 11:44     ` Andy Wingo
2016-01-04 12:13       ` Nala Ginrut
2016-01-06 16:07       ` Ludovic Courtès
2016-01-07  9:56         ` Andy Wingo
2016-02-06 20:45           ` Steve Sprang
2016-02-13  0:44             ` Leo Famulari [this message]
2016-02-13 21:12               ` Efraim Flashner
2016-02-21 20:54                 ` Ludovic Courtès
2016-03-17  0:18                   ` Steve Sprang
2016-03-17  4:21                     ` Leo Famulari
2016-03-17  5:00                       ` Steve Sprang
2016-03-21 15:40                         ` Leo Famulari
2016-03-22 20:59                           ` Pjotr Prins
2016-03-22 21:21                             ` Leo Famulari
2016-03-24  2:41                             ` Leo Famulari
2016-03-24 16:57                               ` Pjotr Prins
2016-03-24 22:53                                 ` gnu: Add elixir. (WIP) Pjotr Prins
2016-03-25 16:50                                   ` Leo Famulari
2016-06-22 19:42           ` bug#19439: [PATCH] gnu: Add erlang Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160213004446.GB13163@jasmine \
    --to=leo@famulari.name \
    --cc=guix-devel@gnu.org \
    --cc=steve.sprang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).