nixpkgs/pkgs/top-level/node-packages.nix

24 lines
753 B
Nix
Raw Normal View History

{ pkgs, stdenv, nodejs, fetchurl, fetchgit, neededNatives, self, generated ? ./node-packages-generated.nix }:
rec {
nativeDeps = {
"node-expat" = [ pkgs.expat ];
2014-10-30 19:58:18 +01:00
"node-stringprep" = [ pkgs.icu pkgs.which ];
"rbytes" = [ pkgs.openssl ];
"phantomjs" = [ pkgs.phantomjs ];
2013-12-11 00:53:45 +01:00
"node-protobuf" = [ pkgs.protobuf ];
};
buildNodePackage = import ../development/web/nodejs/build-node-package.nix {
inherit stdenv nodejs neededNatives;
inherit (pkgs) runCommand;
};
patchSource = fn: srcAttrs: fn srcAttrs;
# Backwards compat
patchLatest = patchSource fetchurl;
/* Put manual packages below here (ideally eventually managed by npm2nix */
} // import generated { inherit self fetchurl fetchgit; inherit (pkgs) lib; }