2013-11-14 10:36:08 -08:00
|
|
|
{ pkgs, stdenv, nodejs, fetchurl, fetchgit, neededNatives, self, generated ? ./node-packages-generated.nix }:
|
2012-07-25 14:46:21 -07:00
|
|
|
|
2013-11-14 10:36:08 -08:00
|
|
|
rec {
|
2013-05-31 09:50:28 -07:00
|
|
|
nativeDeps = {
|
2013-11-05 15:02:16 -08:00
|
|
|
"node-expat" = [ pkgs.expat ];
|
2014-10-30 11:58:18 -07:00
|
|
|
"node-stringprep" = [ pkgs.icu pkgs.which ];
|
2013-11-05 15:02:16 -08:00
|
|
|
"rbytes" = [ pkgs.openssl ];
|
|
|
|
"phantomjs" = [ pkgs.phantomjs ];
|
2013-12-10 15:53:45 -08:00
|
|
|
"node-protobuf" = [ pkgs.protobuf ];
|
2013-05-31 09:50:28 -07:00
|
|
|
};
|
2013-05-29 08:22:18 -07:00
|
|
|
|
2013-05-31 09:50:28 -07:00
|
|
|
buildNodePackage = import ../development/web/nodejs/build-node-package.nix {
|
|
|
|
inherit stdenv nodejs neededNatives;
|
|
|
|
inherit (pkgs) runCommand;
|
|
|
|
};
|
2013-05-29 08:22:18 -07:00
|
|
|
|
2014-11-10 07:59:00 -08:00
|
|
|
patchSource = fn: srcAttrs: fn srcAttrs;
|
2013-05-27 19:29:00 -07:00
|
|
|
|
2013-11-14 10:36:08 -08:00
|
|
|
# Backwards compat
|
|
|
|
patchLatest = patchSource fetchurl;
|
|
|
|
|
2013-05-31 09:50:28 -07:00
|
|
|
/* Put manual packages below here (ideally eventually managed by npm2nix */
|
2013-11-14 10:36:08 -08:00
|
|
|
} // import generated { inherit self fetchurl fetchgit; inherit (pkgs) lib; }
|