···1920, sdkSetupScript ? ""
21, pubGetScript ? "dart pub get"
02223 # Output type to produce. Can be any kind supported by dart
24 # https://dart.dev/tools/dart-compile#types-of-output
···6465 pubspecLockFile = builtins.toJSON pubspecLock;
66 pubspecLockData = pub2nix.readPubspecLock { inherit src packageRoot pubspecLock gitHashes sdkSourceBuilders; };
67- packageConfig = generators.linkPackageConfig (pub2nix.generatePackageConfig {
68- pname = if args.pname != null then "${args.pname}-${args.version}" else null;
06970- dependencies =
71- # Ideally, we'd only include the main dependencies and their transitive
72- # dependencies.
73- #
74- # The pubspec.lock file does not contain information about where
75- # transitive dependencies come from, though, and it would be weird to
76- # include the transitive dependencies of dev and override dependencies
77- # without including the dev and override dependencies themselves.
78- builtins.concatLists (builtins.attrValues pubspecLockData.dependencies);
7980- inherit (pubspecLockData) dependencySources;
81- });
008283 inherit (dartHooks.override { inherit dart; }) dartConfigHook dartBuildHook dartInstallHook dartFixupHook;
84
···1920, sdkSetupScript ? ""
21, pubGetScript ? "dart pub get"
22+, extraPackageConfigSetup ? ""
2324 # Output type to produce. Can be any kind supported by dart
25 # https://dart.dev/tools/dart-compile#types-of-output
···6566 pubspecLockFile = builtins.toJSON pubspecLock;
67 pubspecLockData = pub2nix.readPubspecLock { inherit src packageRoot pubspecLock gitHashes sdkSourceBuilders; };
68+ packageConfig = generators.linkPackageConfig {
69+ packageConfig = pub2nix.generatePackageConfig {
70+ pname = if args.pname != null then "${args.pname}-${args.version}" else null;
7172+ dependencies =
73+ # Ideally, we'd only include the main dependencies and their transitive
74+ # dependencies.
75+ #
76+ # The pubspec.lock file does not contain information about where
77+ # transitive dependencies come from, though, and it would be weird to
78+ # include the transitive dependencies of dev and override dependencies
79+ # without including the dev and override dependencies themselves.
80+ builtins.concatLists (builtins.attrValues pubspecLockData.dependencies);
8182+ inherit (pubspecLockData) dependencySources;
83+ };
84+ extraSetupCommands = extraPackageConfigSetup;
85+ };
8687 inherit (dartHooks.override { inherit dart; }) dartConfigHook dartBuildHook dartInstallHook dartFixupHook;
88