Tristan Daniël Maat
75e60a40d4
The sharp dependencies are *also* required in the dev shell when upstream pulls their prebuilt binaries.
22 lines
558 B
Nix
22 lines
558 B
Nix
{ pkgs ? import <nixpkgs> { inherit system; }, system ? builtins.currentSystem
|
|
}:
|
|
|
|
let nodePackages = import ./default.nix { inherit pkgs system; };
|
|
in nodePackages // {
|
|
shell = nodePackages.shell.override {
|
|
buildInputs = with pkgs; [
|
|
pkgs.nodePackages.node-gyp-build
|
|
pkgconfig
|
|
|
|
# For sharp (dependency of the auto-favicon
|
|
# generator). This depends on the vips (which uses
|
|
# gobjects), and builds using node-gyp, which in turn
|
|
# needs python.
|
|
vips
|
|
glib
|
|
];
|
|
|
|
npmFlags = "--ignore-scripts";
|
|
};
|
|
}
|