nodejs: Add updater script
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user