diff --git a/pkgs/by-name/ed/edgetx/package.nix b/pkgs/by-name/ed/edgetx/package.nix index 9be1dbd82716..5205b6d8a56c 100644 --- a/pkgs/by-name/ed/edgetx/package.nix +++ b/pkgs/by-name/ed/edgetx/package.nix @@ -142,7 +142,7 @@ stdenv.mkDerivation (finalAttrs: { # Yes, this is really how upstream expects packaging to look like ¯\_(ツ)_/¯. # https://github.com/EdgeTX/edgetx/wiki/Build-Instructions-under-Ubuntu-20.04#building-companion-simulator-and-radio-simulator-libraries - for plugin in "$''\{targetsToBuild[@]''\}" + for plugin in "''${targetsToBuild[@]}" do # Variable modified by `get_target_build_options` from build-common.sh. local BUILD_OPTIONS="" diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix b/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix index 82437c2b9504..144799432473 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/default.nix @@ -20,7 +20,7 @@ let parseUrl = url: let - parts = lib.match "(.+):([^/]+)\/([^/?]+)((\/|.+ref=)([^&]+))?" url; + parts = lib.match "(.+):([^/]+)/([^/?]+)((/|.+ref=)([^&]+))?" url; ref = lib.elemAt parts 5; in {