Skip to content

Commit

Permalink
modules: fixup more nodejs modules for docs rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau authored and mergify[bot] committed Oct 11, 2023
1 parent e680006 commit cd7dee1
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
dream2nix.modules.dream2nix.nodejs-package-lock
];

nodejs-package-lock = {
source = config.deps.fetchFromGitHub {
owner = "piuccio";
repo = "cowsay";
rev = "v1.5.0";
sha256 = "sha256-TZ3EQGzVptNqK3cNrkLnyP1FzBd81XaszVucEnmBy4Y=";
};
};

deps = {nixpkgs, ...}: {
inherit
(nixpkgs)
Expand All @@ -27,6 +18,15 @@
;
};

nodejs-package-lock = {
source = config.deps.fetchFromGitHub {
owner = "piuccio";
repo = "cowsay";
rev = "v1.5.0";
sha256 = "sha256-TZ3EQGzVptNqK3cNrkLnyP1FzBd81XaszVucEnmBy4Y=";
};
};

name = "cowsay";
version = "1.5.0";
mkDerivation = {
Expand Down
4 changes: 4 additions & 0 deletions modules/dream2nix/nodejs-granular-v3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@
(dep: lib.nameValuePair dep.name dep.version)
deps));
in {
imports = [
./interface.nix
];

deps = {nixpkgs, ...}:
l.mapAttrs (_: l.mkDefault) {
inherit
Expand Down
1 change: 0 additions & 1 deletion modules/dream2nix/nodejs-granular-v3/interface.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ in {
imports = [
dream2nix.modules.dream2nix.core
dream2nix.modules.dream2nix.mkDerivation
./interface.nix
];
_module.args = {inherit dream2nix packageSets;};
}));
Expand Down
4 changes: 4 additions & 0 deletions modules/dream2nix/nodejs-granular/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
(dep: lib.nameValuePair dep.name dep.version)
deps));
in {
imports = [
./interface.nix
];

deps = {nixpkgs, ...}:
l.mapAttrs (_: l.mkDefault) {
inherit
Expand Down
3 changes: 1 addition & 2 deletions modules/dream2nix/nodejs-granular/interface.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ in {
'';
};
deps = {
type = t.attrsOf (t.attrsOf (t.submodule {
type = t.lazyAttrsOf (t.lazyAttrsOf (t.submodule {
imports = [
dream2nix.modules.dream2nix.core
dream2nix.modules.dream2nix.mkDerivation
./interface.nix
];
_module.args = {inherit dream2nix packageSets;};
}));
Expand Down
2 changes: 0 additions & 2 deletions modules/dream2nix/nodejs-node-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
...
}: let
l = lib // builtins;

cfg = config.nodejs-devshell;
in {
imports = [
dream2nix.modules.dream2nix.mkDerivation
Expand Down
8 changes: 4 additions & 4 deletions modules/flake-parts/website.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
# "mkDerivation"
# "mkDerivation-sane-defaults"
# "nixpkgs-overrides"
# "nodejs-devshell"
# "nodejs-granular"
# "nodejs-granular-v3"
# "nodejs-node-modules"
"nodejs-devshell"
"nodejs-granular"
"nodejs-granular-v3"
"nodejs-node-modules"
"nodejs-package-json"
"nodejs-package-lock"
"nodejs-package-lock-v3"
Expand Down

0 comments on commit cd7dee1

Please sign in to comment.