mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
9ffc2dff98
- bower - grunt-cli - grunt-contrib-jshint - grunt-contrib-requirejs - grunt-contrib-less - grunt-contrib-cssmin - grunt-contrib-uglify - grunt-karma - karma-mocha - karma-coverage - karma-requirejs - karma-sauce-launcher - karma-chrome-launcher - karma-junit-reporter - almond - lcov-result-merger - coveralls
27 lines
831 B
Nix
27 lines
831 B
Nix
{ pkgs, stdenv, nodejs, fetchurl, neededNatives, self, generated ? ./node-packages-generated.nix }:
|
|
|
|
{
|
|
nativeDeps = {
|
|
"node-expat"."*" = [ pkgs.expat ];
|
|
"rbytes"."*" = [ pkgs.openssl ];
|
|
"phantomjs"."~1.9" = [ pkgs.phantomjs ];
|
|
};
|
|
|
|
buildNodePackage = import ../development/web/nodejs/build-node-package.nix {
|
|
inherit stdenv nodejs neededNatives;
|
|
inherit (pkgs) runCommand;
|
|
};
|
|
|
|
patchLatest = srcAttrs:
|
|
let src = fetchurl srcAttrs; in pkgs.runCommand src.name {} ''
|
|
mkdir unpack
|
|
cd unpack
|
|
tar xf ${src}
|
|
mv */ package 2>/dev/null || true
|
|
sed -i -e "s/: \"latest\"/: \"*\"/" package/package.json
|
|
tar cf $out *
|
|
'';
|
|
|
|
/* Put manual packages below here (ideally eventually managed by npm2nix */
|
|
} // import generated { inherit self fetchurl; inherit (pkgs) lib; }
|