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:
parent
b3d89798be
commit
87f1708872
@ -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…
Reference in New Issue
Block a user