Skip to content

Commit

Permalink
Merge pull request #54633 from srghma/pnpm-fix
Browse files Browse the repository at this point in the history
pnpm: fix build error "unsupported URL Type link"
  • Loading branch information
dywedir authored Jan 26, 2019
2 parents 9130c1d + 7ea948f commit d359b5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/node-packages/default-v10.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ nodePackages // {

pnpm = nodePackages.pnpm.override {
nativeBuildInputs = [ pkgs.makeWrapper ];

preRebuild = ''
sed 's/"link:/"file:/g' --in-place package.json
'';

postInstall = let
pnpmLibPath = stdenv.lib.makeBinPath [
nodejs.passthru.python
Expand Down

0 comments on commit d359b5d

Please sign in to comment.