qt5: fetch submodules

This commit is contained in:
Nick Cao 2023-01-15 15:48:05 +08:00
parent 231d0821c7
commit 0567815a11
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ srcs="${here}/srcs-generated.json"
while read -r module; do while read -r module; do
if [[ -z "$module" ]]; then continue; fi if [[ -z "$module" ]]; then continue; fi
url="https://invent.kde.org/qt/qt/${module}.git" url="https://invent.kde.org/qt/qt/${module}.git"
nix-prefetch-git --url $url --rev refs/heads/kde/5.15 \ nix-prefetch-git --url $url --rev refs/heads/kde/5.15 --fetch-submodules \
| jq "{key: \"${module}\", value: {url,rev,sha256}}" | jq "{key: \"${module}\", value: {url,rev,sha256}}"
done < "$modules" | jq -s 'from_entries' > "${srcs}.tmp" done < "$modules" | jq -s 'from_entries' > "${srcs}.tmp"

View file

@ -14,7 +14,7 @@ let
fetchgit { fetchgit {
inherit (args) url rev sha256; inherit (args) url rev sha256;
fetchLFS = false; fetchLFS = false;
fetchSubmodules = false; fetchSubmodules = true;
deepClone = false; deepClone = false;
leaveDotGit = false; leaveDotGit = false;
}; };