Open kwohlfahrt opened 6 years ago
Should be fixed with https://github.com/NixOS/nixpkgs/pull/51324 Please let me know if that isn't the case
Still broken.
This is preventing me from updating a different package (furo), since it now depends on webpack. I tried to fix webpack but didn't manage to do so. Maybe the NODE_PATH
works differently to how it used to work?
I basically tried to edit pkgs/development/node-packages/default.nix
and add
webpack-cli = super.webpack-cli.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/webpack-cli" \
--prefix NODE_PATH : ${self.webpack}/lib/node_modules
'';
};
but it didn't work.
This works for me
webpack-cli = pkgs.nodePackages.webpack-cli.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/webpack-cli" \
--set WEBPACK_PACKAGE ${pkgs.nodePackages.webpack}/lib/node_modules/webpack
'';
};
Issue description
I can't use
nodePackages.webpack
, as the CLI is split intowebpack-cli
, which is not available in nixpkgs.Steps to reproduce
Technical details
"x86_64-linux"
Linux 4.14.42, NixOS, 18.09pre140682.5da85431fb1 (Jellyfish)
yes
no
nix-env (Nix) 2.0.2
"nixos-18.09pre142796.4b649a99d84"
"nixos-18.09pre139651.6db7f92cc2a"
/nix/var/nix/profiles/per-user/root/channels/nixos