diff options
| author | Konrad Malik <konrad.malik@gmail.com> | 2023-01-21 15:01:07 +0100 |
|---|---|---|
| committer | Konrad Malik <konrad.malik@gmail.com> | 2023-04-29 14:49:06 +0200 |
| commit | fad0282b5fc9c05c2751be5df79ddb8c3f1c3452 (patch) | |
| tree | d37368d062a00320adf4af76a36f254ef9a51dfc /pkgs | |
| parent | a1ee4d333b092bc055655fb06229eb3013755812 (diff) | |
add '://' to built flake uri
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/nix-tools/darwin-rebuild.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh index 25d704f..b2b99f0 100644 --- a/pkgs/nix-tools/darwin-rebuild.sh +++ b/pkgs/nix-tools/darwin-rebuild.sh @@ -123,13 +123,13 @@ flakeFlags=(--extra-experimental-features 'nix-command flakes') if [ -n "$flake" ]; then # Offical regex from https://www.rfc-editor.org/rfc/rfc3986#appendix-B if [[ "${flake}" =~ ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))? ]]; then - scheme=${BASH_REMATCH[2]} - authority=${BASH_REMATCH[4]} - path=${BASH_REMATCH[5]} + scheme=${BASH_REMATCH[2]} # eg. http + authority=${BASH_REMATCH[4]} # eg. www.ics.uci.edu + path=${BASH_REMATCH[5]} # eg. /pub/ietf/uri/ queryWithQuestion=${BASH_REMATCH[6]} fragment=${BASH_REMATCH[9]} - flake=${scheme}${authority}${path}${queryWithQuestion} + flake=${scheme}://${authority}${path}${queryWithQuestion} flakeAttr=${fragment} fi if [ -z "$flakeAttr" ]; then |
