m 5 newsbot-js: buildNodePackage via callPackage

This commit is contained in:
lassulus 2016-10-20 09:13:15 +02:00
parent 67a61b71fc
commit bb2d4b10d3

View File

@ -1,9 +1,9 @@
{ stdenv, makeWrapper, lib, buildEnv, fetchgit, nodePackages, nodejs }:
{ stdenv, makeWrapper, callPackage, lib, buildEnv, fetchgit, nodePackages, nodejs }:
with lib;
let
np = nodePackages.override {
np = (callPackage <nixpkgs/pkgs/top-level/node-packages.nix>) {
generated = ./packages.nix;
self = np;
};
@ -21,7 +21,7 @@ let
ignoreCollisions = true;
};
in nodePackages.buildNodePackage {
in np.buildNodePackage {
name = "newsbot-js";
src = fetchgit {