vegan-prestwich/node-deps.nix

31 lines
615 B
Nix
Raw Normal View History

2024-11-26 16:53:29 +00:00
# node-deps.nix
2024-12-28 23:16:17 +00:00
{
pkgs ? import <nixpkgs> { },
}:
2024-11-26 16:53:29 +00:00
let
packageJSON = pkgs.writeTextFile {
name = "package.json";
text = builtins.toJSON {
name = "veganprestwich-co-uk";
version = "1.0.0";
dependencies = {
"fast-glob" = "^3.3.2";
"@11ty/eleventy" = "^3.0.0";
"@11ty/eleventy-img" = "^5.0.0";
};
};
};
nodeModules = pkgs.mkYarnModules {
pname = "veganprestwich-co-uk-deps";
version = "1.0.0";
packageJSON = packageJSON;
yarnLock = ./yarn.lock;
2024-12-28 23:16:17 +00:00
yarnFlags = [ "--frozen-lockfile" ];
2024-11-26 16:53:29 +00:00
};
in
{
inherit packageJSON nodeModules;
}