Compare commits

...

1 commit

Author SHA1 Message Date
682798c26e
templates: Make devshell work properly 2024-01-02 16:32:18 +01:00
2 changed files with 11 additions and 0 deletions

View file

@ -7,6 +7,7 @@
imports = [
dream2nix.modules.dream2nix.nodejs-package-json-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
dream2nix.modules.dream2nix.nodejs-devshell-v3
];
deps = {nixpkgs, ...}: {
@ -23,6 +24,8 @@
yj < $out/package.yaml > $out/package.json
'';
nativeBuildInputs = [config.deps.yj];
# The default phase (which is hidden in `preInstallPhases`) will
# copy the full node_modules directory to the output, and symlink
# executables and whatnot.
@ -35,10 +38,18 @@
'';
};
nodejs-package-lock-v3.packageLockFile = "${config.mkDerivation.src}/package-lock.json";
nodejs-granular-v3.deps = {
sharp."0.28.3".mkDerivation.buildInputs = with config.deps; [
vips
pkg-config
];
};
nodejs-devshell-v3.nodeModules = {
nodejs-granular-v3.deps.sharp."0.28.3".mkDerivation.buildInputs = with config.deps; [
vips
pkg-config
];
};
}