Created
June 25, 2014 08:48
-
-
Save qknight/e7426ae8fe71371bd1f9 to your computer and use it in GitHub Desktop.
npm2nix creates broken node-packages.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm2nix pkgs/top-level/node-packages.json pkgs/top-level/node-packages.nix | |
nodePackages = recurseIntoAttrs (import ./node-packages.nix { | |
inherit pkgs stdenv nodejs fetchurl fetchgit; | |
neededNatives = [python] ++ lib.optional (lib.elem system lib.platforms.linux) utillinux; | |
self = pkgs.nodePackages; | |
}); | |
diff --git a/pkgs/top-level/node-packages.nix b/pkgs/top-level/node-packages.nix | |
index 448904c..180e134 100644 | |
--- a/pkgs/top-level/node-packages.nix | |
+++ b/pkgs/top-level/node-packages.nix | |
@@ -1,31 +1,22723 @@ | |
-{ pkgs, stdenv, nodejs, fetchurl, fetchgit, neededNatives, self, generated ? ./node-packages-generated.nix }: | |
+{ self, fetchurl, fetchgit ? null, lib }: | |
-rec { | |
- nativeDeps = { | |
- "node-expat" = [ pkgs.expat ]; | |
- "rbytes" = [ pkgs.openssl ]; | |
- "phantomjs" = [ pkgs.phantomjs ]; | |
- "node-protobuf" = [ pkgs.protobuf ]; | |
+{ | |
+ by-spec."Base64"."~0.2.0" = | |
+ self.by-version."Base64"."0.2.1"; | |
+ by-version."Base64"."0.2.1" = lib.makeOverridable self.buildNodePackage { | |
+ name = "node-Base64-0.2.1"; | |
+ src = [ | |
+ (fetchurl { | |
+ url = "http://registry.npmjs.org/Base64/-/Base64-0.2.1.tgz"; | |
+ name = "Base64-0.2.1.tgz"; | |
+ sha1 = "ba3a4230708e186705065e66babdd4c35cf60028"; | |
+ }) | |
+ ]; | |
+ buildInputs = | |
+ (self.nativeDeps."Base64" or []); | |
+ deps = [ | |
+ ]; | |
+ peerDependencies = [ | |
+ ]; | |
+ passthru.names = [ "Base64" ]; | |
}; | |
npm2nix --version | |
5.6.0 | |
nixos-version | |
14.10pre-43c6017M (Caterpillar) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment