From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:45305) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir5yP-00006z-69 for guix-patches@gnu.org; Mon, 13 Jan 2020 15:06:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir5yM-0001qz-Pb for guix-patches@gnu.org; Mon, 13 Jan 2020 15:06:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir5yM-0001qk-MJ for guix-patches@gnu.org; Mon, 13 Jan 2020 15:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ir5yM-0008KV-HF for guix-patches@gnu.org; Mon, 13 Jan 2020 15:06:02 -0500 Subject: [bug#39119] [PATCH 1/9] gnu: Add node-env-variable. References: <20200113200137.GF858@E5400> In-Reply-To: <20200113200137.GF858@E5400> Resent-Message-ID: From: Efraim Flashner Date: Mon, 13 Jan 2020 22:04:39 +0200 Message-Id: <20200113200447.5490-1-efraim@flashner.co.il> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39119@debbugs.gnu.org Cc: Efraim Flashner * gnu/packages/node-xyz.scm (node-env-variable): New variable. * gnu/local.mk (GNU_SYSTEM_MODULES): Register it. --- gnu/local.mk | 1 + gnu/packages/node-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 gnu/packages/node-xyz.scm diff --git a/gnu/local.mk b/gnu/local.mk index cb46ee7880..c2cf68a7d2 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -367,6 +367,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/nim.scm \ %D%/packages/ninja.scm \ %D%/packages/node.scm \ + %D%/packages/node-xyz.scm \ %D%/packages/noweb.scm \ %D%/packages/nss.scm \ %D%/packages/ntp.scm \ diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm new file mode 100644 index 0000000000..896c0628a6 --- /dev/null +++ b/gnu/packages/node-xyz.scm @@ -0,0 +1,46 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2020 Efraim Flashner +;;; +;;; 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 (gnu packages node-xyz) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system node)) + +(define-public node-env-variable + (package + (name "node-env-variable") + (version "0.0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bigpipe/env-variable") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0nnpxjxfhy4na7fixb7p3ww6ard5xgggfm83b78i333867r4gmsq")))) + (build-system node-build-system) + (arguments '(#:tests? #f)) ; No tests. + (home-page "https://github.com/bigpipe/env-variable") + (synopsis "Environment variables for Node with fallbacks") + (description "This package provides environment variables with +@code{process.env}, @code{window.name}, @code{location.hash} and +@code{localStorage} fallbacks.") + (license license:expat))) -- 2.24.1