nodePackages.postcss-cli: fix execution of binary

Without this change, executing the postcss binary results in the following error:
Error: Cannot find module 'postcss'
wip/nixpkgs-raku
Luflosi 3 years ago
parent b3d89798be
commit 87f1708872
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0
  1. 9
      pkgs/development/node-packages/default.nix

@ -202,6 +202,15 @@ let
'';
};
postcss-cli = super.postcss-cli.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/postcss" \
--prefix NODE_PATH : ${self.postcss}/lib/node_modules
'';
meta.mainProgram = "postcss";
};
pulp = super.pulp.override {
# tries to install purescript
npmFlags = "--ignore-scripts";

Loading…
Cancel
Save