unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: swedebugia <swedebugia@riseup.net>
To: guix-devel@gnu.org, Julien Lepiller <julien@lepiller.eu>
Subject: Re: Packaging async and underscore
Date: Fri, 30 Nov 2018 17:44:53 +0100	[thread overview]
Message-ID: <f8fb9d21-f200-c09b-6ace-d4214508d2cb@riseup.net> (raw)
In-Reply-To: <457c8004267eef9c76f22457ae45fde8@lepiller.eu>

[-- Attachment #1: Type: text/plain, Size: 840 bytes --]

Hi :)

On 2018-11-30 17:08, Julien Lepiller wrote:
> Le 2018-11-30 15:17, swedebugia a écrit :
snip

> 
> Thanks, I'll merge that with my version of the patches, and send them 
> both for review. I think they are already very good, unless you think we 
> need more time to make sure the build system is perfect.

Sounds good to me :) We can improve it further in-tree.

> Could you explain why this is necessary? In what case does this 
> directory doesn't exist? I also wonder if it can be the case that 
> node_modules is a file or a symlink that isn't catched by your check...

The following patch triggers the error. I build it again today and saw 
that my fix seemed not to work anymore for some reason I do not 
understand :-/

See this error log: https://paste.debian.net/1053871/.

-- 
Cheers
Swedebugia

[-- Attachment #2: 0001-gnu-Add-node-underscore.patch --]
[-- Type: text/x-patch, Size: 2959 bytes --]

From cdfbaa7c882a810756ec34ad3a4f885960c8a970 Mon Sep 17 00:00:00 2001
From: swedebugia <swedebugia@riseup.net>
Date: Fri, 30 Nov 2018 17:30:50 +0100
Subject: [PATCH] gnu: Add node-underscore

* gnu/packages/node.scm(node-underscore): New variable
---
 gnu/packages/node.scm | 47 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 70bbb1779..580071fb1 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -22,6 +22,10 @@
 ;;; You should have received a copy of the GNU General Public License
 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
+;; The node-build-system allows two ways to install node:
+;; Locally and globally. Default is "local".
+;; See https://nodejs.org/en/blog/npm/npm-1-0-global-vs-local-installation/
+
 (define-module (gnu packages node)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
@@ -38,6 +42,7 @@
   #:use-module (gnu packages icu4c)
   #:use-module (gnu packages libevent)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages lisp)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
@@ -547,3 +552,45 @@ commonjs, browser, AMD, electron, etc.")
   (home-page
     "https://github.com/kumavis/browser-stdout")
   (license license:expat)))
+
+(define-public node-underscore
+  (package
+   (name "node-underscore")
+   (version "1.9.1")
+   (source
+    (origin
+      (method git-fetch)
+      (uri (git-reference
+             (url "https://github.com/jashkenas/underscore")
+             (commit "ae037f7c41323807ae6f1533c45512e6d31a1574")))
+      (file-name (string-append name "-" version))
+      (sha256
+       (base32
+        "1f75wrln5kv5ihkbb9zwhyjqd9imwil801abhv36w09dkkabpjy5"))))
+   (build-system node-build-system)
+   (native-inputs `(("uglify-js" ,uglify-js)))
+   (arguments
+    `(#:tests? #f 
+      ;; FIXME: These test dependencies are missing:
+      ;; "karma": "^0.13.13",
+      ;; "karma-qunit": "~2.0.1",
+      ;; "karma-sauce-launcher": "^1.2.0",
+      ;; "nyc": "^2.1.3",
+      ;; "qunit-cli": "~0.2.0",
+      ;; "qunit": "^2.6.0",
+      #:phases                          ;No configure script
+      (modify-phases %standard-phases
+        (delete 'configure)
+        (add-before 'build 'patch-files
+          (lambda* (#:key inputs #:allow-other-keys)
+            ;; Fix wrong path to uglify-js
+            (substitute* "package.json"
+              (("uglifyjs") "uglify-js"))))))) 
+   (synopsis
+    "JavaScript's functional programming helper library.")
+   (description
+    "Underscore.js is a utility-belt library for JavaScript that provides
+support for the usual functional suspects (each, map, reduce, filter...)
+providing over 100 functions.")
+   (home-page "http://underscorejs.org")
+   (license license:expat)))
-- 
2.19.1


  reply	other threads:[~2018-11-30 16:38 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11 10:41 NPM importer swedebugia
2018-11-11 15:37 ` Julien Lepiller
2018-11-19 23:29   ` swedebugia
2018-11-20  7:50     ` Julien Lepiller
2018-11-20 19:58       ` swedebugia
2018-11-20 21:12         ` swedebugia
2018-11-20 22:35           ` Julien Lepiller
2018-11-21 15:36             ` swedebugia
2018-11-21  1:41           ` Mike Gerwitz
2018-11-21 22:01             ` Brett Gilio
2018-11-21 23:22               ` swedebugia
2018-11-22  1:02                 ` swedebugia
2018-11-22  5:43                   ` Brett Gilio
2018-11-22 11:27                     ` import libjs-*.deb from Debian? (was Re: NPM importer) Giovanni Biscuolo
2018-11-30  3:23                       ` Ricardo Wurmus
2018-11-22  8:36                   ` NPM importer Julien Lepiller
2018-11-24 13:47                     ` swedebugia
2018-11-23 19:50                   ` swedebugia
2018-11-30  3:17                     ` Ricardo Wurmus
2018-11-30 14:17                   ` Packaging async and underscore (Was: Re: NPM importer) swedebugia
2018-11-30 16:08                     ` Packaging async and underscore Julien Lepiller
2018-11-30 16:44                       ` swedebugia [this message]
2018-11-24 13:42       ` NPM importer swedebugia
2018-11-30 16:13   ` Improved NPM importer with blacklist (Was: Re: NPM importer) swedebugia
2018-11-30 16:24     ` Improved NPM importer with blacklist Julien Lepiller
2018-11-30 17:20       ` swedebugia
2018-11-30 23:27     ` Improved NPM importer with blacklist (Was: Re: NPM importer) swedebugia
2018-11-11 17:10 ` NPM importer Ludovic Courtès
2018-11-21 16:37   ` Giovanni Biscuolo
2018-11-21 17:15     ` Julien Lepiller
2018-11-22  9:29       ` Giovanni Biscuolo

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=f8fb9d21-f200-c09b-6ace-d4214508d2cb@riseup.net \
    --to=swedebugia@riseup.net \
    --cc=guix-devel@gnu.org \
    --cc=julien@lepiller.eu \
    /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).