mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-22 06:32:21 +03:00
nodejs-granular-v3: fix option prefix
This commit is contained in:
parent
a900b3a332
commit
4bd6022300
@ -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";
|
||||
|
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user