mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
86744fef91
- reuse unpack and patch phase - patch shebangs of source code - properly patch depdency versions (thanks @svanderburg) - add patching for github version names - add some inline docs - fix recursive depdencies runtime handling by copying files instead of symlinking if package has recursive dependencies
24 lines
753 B
Nix
24 lines
753 B
Nix
{ 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; }
|