Explain sharp deps and use them in the dev shell
The sharp dependencies are *also* required in the dev shell when upstream pulls their prebuilt binaries.
This commit is contained in:
parent
ab21df54cf
commit
75e60a40d4
|
@ -42,7 +42,8 @@
|
||||||
|
|
||||||
devShell = prev.mkShell {
|
devShell = prev.mkShell {
|
||||||
buildInputs = with prev;
|
buildInputs = with prev;
|
||||||
with nodePackages; [
|
with nodePackages;
|
||||||
|
[
|
||||||
nodejs
|
nodejs
|
||||||
node2nix
|
node2nix
|
||||||
|
|
||||||
|
@ -50,7 +51,7 @@
|
||||||
prettier
|
prettier
|
||||||
typescript
|
typescript
|
||||||
typescript-language-server
|
typescript-language-server
|
||||||
];
|
] ++ packages.nodeEnv.shell.buildInputs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,9 +6,14 @@ in nodePackages // {
|
||||||
shell = nodePackages.shell.override {
|
shell = nodePackages.shell.override {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
pkgs.nodePackages.node-gyp-build
|
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
|
vips
|
||||||
glib
|
glib
|
||||||
pkgconfig
|
|
||||||
];
|
];
|
||||||
|
|
||||||
npmFlags = "--ignore-scripts";
|
npmFlags = "--ignore-scripts";
|
||||||
|
|
Reference in a new issue