Add cipher-block-size node package and remove the nativeDeps argument to build-node-package (buildInputs can just be specified directly)

This commit is contained in:
Shea Levy 2012-09-18 12:08:16 -04:00
parent aa2d8d1e02
commit 7d5bb08534
2 changed files with 32 additions and 3 deletions

@ -1,6 +1,6 @@
{ stdenv, runCommand, nodejs, neededNatives}:
args @ { src, deps ? [], nativeDeps ? [], flags ? [], ... }:
args @ { src, deps ? [], flags ? [], ... }:
with stdenv.lib;
@ -31,7 +31,6 @@ stdenv.mkDerivation ({
'';
buildNativeInputs = neededNatives;
buildInputs = nativeDeps;
installPhase = ''
runHook preInstall

@ -66,6 +66,19 @@ let self = {
];
};
"bindings" = self."bindings-1";
"bindings-1" = self.buildNodePackage rec {
name = "bindings-1.0.0";
src = fetchurl {
url = "http://registry.npmjs.org/bindings/-/${name}.tgz";
sha256 = "cb211ac856d135af5ee864762fae9e554225a613ea1fd815c20b8fdd1679c9ed";
};
deps = [
];
};
"block-stream" = self."block-stream-*";
"block-stream-*" = self.buildNodePackage rec {
@ -123,6 +136,23 @@ let self = {
];
};
"cipher-block-size" = self."cipher-block-size-0.0.0";
"cipher-block-size-0.0.0" = self.buildNodePackage rec {
name = "cipher-block-size-0.0.0";
src = fetchurl {
url = https://bitbucket.org/shlevy/node-cipher-block-size/get/0.0.0.tar.gz;
sha256 = "0j4i19ckb9ab9aqd4w3j0vrvcw7c6icq279x4fx8xs1h9massxng";
name = "${name}.tgz";
};
deps = [
self."bindings-1"
];
buildInputs = [
pkgs.openssl
];
};
"coffee-script" = self."coffee-script-1.3.3";
"coffee-script-~1" = self."coffee-script-1.3.3";
@ -696,7 +726,7 @@ let self = {
deps = [
];
nativeDeps = [
buildInputs = [
pkgs.openssl
];
};