diff options
author | hacker1024 <hacker1024@users.sourceforge.net> | 2024-01-14 17:21:51 +1100 |
---|---|---|
committer | hacker1024 <hacker1024@users.sourceforge.net> | 2024-01-14 17:21:51 +1100 |
commit | ee18b58cf4916c5e0a0f80396114ee8786a9f1bb (patch) | |
tree | 9efc7f6db769b68ad5844facf55c5041e1117ec5 /pkgs/build-support/dart | |
parent | dd5621df6dcb90122b50da5ec31c411a0de3e538 (diff) |
pub2nix: Fix language version regex on Darwin
Diffstat (limited to 'pkgs/build-support/dart')
-rw-r--r-- | pkgs/build-support/dart/pub2nix/package-config.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/dart/pub2nix/package-config.nix b/pkgs/build-support/dart/pub2nix/package-config.nix index 309e51ec84a11..70abb0a76cef5 100644 --- a/pkgs/build-support/dart/pub2nix/package-config.nix +++ b/pkgs/build-support/dart/pub2nix/package-config.nix @@ -41,7 +41,7 @@ in fi languageConstraint="$(yq -r .environment.sdk "''${packageSources["$package"]}/''${packageRoots["$package"]}/pubspec.yaml")" - if [[ "$languageConstraint" =~ ^[[:space:]]*(\^|>=|>|)[[:space:]]*([[:digit:]]+\.[[:digit:]]+)\.[[:digit:]]+.*$ ]]; then + if [[ "$languageConstraint" =~ ^[[:space:]]*(\^|>=|>)?[[:space:]]*([[:digit:]]+\.[[:digit:]]+)\.[[:digit:]]+.*$ ]]; then languageVersionJson="\"''${BASH_REMATCH[2]}\"" elif [ "$languageConstraint" = 'any' ]; then languageVersionJson='null' |