aider-chat: ignore dev version in update script, delaying conditionals (#396481)
This commit is contained in:
@@ -330,44 +330,43 @@ let
|
||||
propagatedBuildInputs ? [ ],
|
||||
...
|
||||
}:
|
||||
let
|
||||
playwrightDeps =
|
||||
if withPlaywright || withAll then aider-chat.optional-dependencies.playwright else [ ];
|
||||
browserDeps = if withBrowser || withAll then aider-chat.optional-dependencies.browser else [ ];
|
||||
helpDeps = if withHelp || withAll then aider-chat.optional-dependencies.help else [ ];
|
||||
bedrockDeps = if withBedrock || withAll then aider-chat.optional-dependencies.bedrock else [ ];
|
||||
|
||||
playwrightInputs = if withPlaywright || withAll then [ playwright-driver.browsers ] else [ ];
|
||||
playwrightArgs =
|
||||
if withPlaywright || withAll then
|
||||
[
|
||||
"--set"
|
||||
"PLAYWRIGHT_BROWSERS_PATH"
|
||||
"${playwright-driver.browsers}"
|
||||
"--set"
|
||||
"PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS"
|
||||
"true"
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
helpArgs =
|
||||
if withHelp || withAll then
|
||||
[
|
||||
"--set"
|
||||
"NLTK_DATA"
|
||||
"${aider-nltk-data}"
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
in
|
||||
{
|
||||
dependencies = dependencies ++ playwrightDeps ++ browserDeps ++ helpDeps ++ bedrockDeps;
|
||||
propagatedBuildInputs = propagatedBuildInputs ++ playwrightInputs;
|
||||
makeWrapperArgs = makeWrapperArgs ++ playwrightArgs ++ helpArgs;
|
||||
dependencies =
|
||||
dependencies
|
||||
++ lib.optionals (withAll || withPlaywright) aider-chat.optional-dependencies.playwright
|
||||
++ lib.optionals (withAll || withBrowser) aider-chat.optional-dependencies.browser
|
||||
++ lib.optionals (withAll || withHelp) aider-chat.optional-dependencies.help
|
||||
++ lib.optionals (withAll || withBedrock) aider-chat.optional-dependencies.bedrock;
|
||||
|
||||
propagatedBuildInputs =
|
||||
propagatedBuildInputs
|
||||
++ lib.optionals (withAll || withPlaywright) [ playwright-driver.browsers ];
|
||||
|
||||
makeWrapperArgs =
|
||||
makeWrapperArgs
|
||||
++ lib.optionals (withAll || withPlaywright) [
|
||||
"--set"
|
||||
"PLAYWRIGHT_BROWSERS_PATH"
|
||||
"${playwright-driver.browsers}"
|
||||
"--set"
|
||||
"PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS"
|
||||
"true"
|
||||
]
|
||||
++ lib.optionals (withAll || withHelp) [
|
||||
"--set"
|
||||
"NLTK_DATA"
|
||||
"${aider-nltk-data}"
|
||||
];
|
||||
}
|
||||
);
|
||||
|
||||
updateScript = nix-update-script { };
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version-regex"
|
||||
"^v([0-9.]+)$"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user