nodejs-granular-v3: fix option prefix

This commit is contained in:
DavHau 2023-10-24 22:38:28 +01:00 committed by mergify[bot]
parent a900b3a332
commit 4bd6022300
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@
}: let
l = lib // builtins;
cfg = config.nodejs-granular;
cfg = config.nodejs-granular-v3;
extractSource = import ../../flake-parts/lib/internal/fetchers/extractSource.nix {
inherit lib;
@ -96,7 +96,7 @@
depsModule = name: version: {config, ...}: {
name = lib.replaceStrings ["@" "/"] ["__at__" "__slash__"] name;
inherit version;
nodejs-granular = {
nodejs-granular-v3 = {
# only run build on the main package
runBuild = l.mkOptionDefault false;
};
@ -213,7 +213,7 @@
;
inherit
(config.nodejs-granular)
(config.nodejs-granular-v3)
buildScript
installMethod
runBuild
@ -277,7 +277,7 @@
linkBins = "${./link-bins.py}";
};
nodejs-granular = {
nodejs-granular-v3 = {
/*
For top-level packages install dependencies as full copies, as this
reduces errors with build tooling that doesn't cope well with
@ -314,7 +314,7 @@ in {
pkg = config.public;
};
};
nodejs-granular = {
nodejs-granular-v3 = {
deps = nodejsDeps;
runBuild = l.mkDefault true;
installMethod = l.mkDefault "copy";

View File

@ -8,7 +8,7 @@
l = lib // builtins;
t = l.types;
in {
options.nodejs-granular = l.mapAttrs (_: l.mkOption) {
options.nodejs-granular-v3 = l.mapAttrs (_: l.mkOption) {
buildScript = {
type = t.nullOr (t.oneOf [t.str t.path t.package]);
description = ''