mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 14:31:55 +03:00
42838c5909
- name example more consistently, eg. `{language}-packaging-{feature}` or `{language}-local-development-{feature}` - move some examples to the modules integration tests directory instead as their purpose was mainly testing and they weren't good example - module owned checks: import via flake if available
31 lines
473 B
Nix
31 lines
473 B
Nix
{
|
|
lib,
|
|
config,
|
|
dream2nix,
|
|
...
|
|
}: {
|
|
imports = [
|
|
dream2nix.modules.dream2nix.nodejs-package-lock-v3
|
|
dream2nix.modules.dream2nix.nodejs-granular-v3
|
|
];
|
|
|
|
mkDerivation = {
|
|
src = ./nextjs-app;
|
|
};
|
|
|
|
deps = {nixpkgs, ...}: {
|
|
inherit
|
|
(nixpkgs)
|
|
fetchFromGitHub
|
|
stdenv
|
|
;
|
|
};
|
|
|
|
nodejs-package-lock-v3 = {
|
|
packageLockFile = "${config.mkDerivation.src}/package-lock.json";
|
|
};
|
|
|
|
name = "nextjs-app";
|
|
version = "0.1.0";
|
|
}
|