summary refs log tree commit diff
path: root/pkgs/top-level/node-packages.nix
blob: 9127dfbbb435a726462526fae1de00a962035fee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgs, stdenv, nodejs, fetchurl, fetchgit, neededNatives, self, generated ? ./node-packages-generated.nix }:

rec {
  nativeDeps = {
    "node-expat" = [ pkgs.expat ];
    "node-stringprep" = [ pkgs.icu pkgs.which ];
    "rbytes" = [ pkgs.openssl ];
    "phantomjs" = [ pkgs.phantomjs ];
    "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; }