Skip to content

Commit

Permalink
fast-cli: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
svanderburg committed Sep 10, 2017
1 parent 80486ba commit 397fc0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/node-packages/default-v6.nix
Expand Up @@ -53,4 +53,12 @@ nodePackages // {
export PATH="$PATH:$tmp"
'';
});

fast-cli = nodePackages.fast-cli.override (oldAttrs: {
preRebuild = ''
# Simply ignore the phantomjs --version check. It seems to need a display but it is safe to ignore
sed -i -e "s|console.error('Error verifying phantomjs, continuing', err)|console.error('Error verifying phantomjs, continuing', err); return true;|" node_modules/phantomjs-prebuilt/lib/util.js
'';
buildInputs = oldAttrs.buildInputs ++ [ pkgs.phantomjs2 ];
});
}
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -1027,9 +1027,7 @@ with pkgs;

fastJson = callPackage ../development/libraries/fastjson { };

fast-cli = nodePackages.fast-cli.overrideDerivation (old: {
buildInputs = old.buildInputs ++ [phantomjs2];
});
fast-cli = nodePackages.fast-cli;

fd = callPackage ../tools/misc/fd { };

Expand Down

0 comments on commit 397fc0d

Please sign in to comment.