nodejs: Add updater script

This commit is contained in:
adisbladis
2018-02-18 22:19:01 +08:00
parent e1bd5b33b6
commit 43cf893d44
2 changed files with 36 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
{ stdenv, fetchurl, openssl, python2, zlib, libuv, utillinux, http-parser
, pkgconfig, which
# Updater dependencies
, writeScript, coreutils, gnugrep, jq, curl, common-updater-scripts, nix
, gnupg
, darwin ? null
}:
@@ -78,6 +81,12 @@ in
''}
'';
passthru.updateScript = import ./update.nix {
inherit writeScript coreutils gnugrep jq curl common-updater-scripts gnupg nix;
inherit (stdenv) lib;
majorVersion = with stdenv.lib; elemAt (splitString "." version) 0;
};
meta = {
description = "Event-driven I/O framework for the V8 JavaScript engine";
homepage = https://nodejs.org;