nodePackages.postcss-cli: fix execution of binary

Without this change, executing the postcss binary results in the following error:
Error: Cannot find module 'postcss'
This commit is contained in:
Luflosi
2021-07-12 13:49:12 +02:00
parent b3d89798be
commit 87f1708872

View File

@@ -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";