lol

swiftpm2nix: fix hash mismatch when git submodules exist

+2 -1
+1
pkgs/development/tools/swiftpm2nix/support.nix
··· 29 29 url = dep.packageRef.location; 30 30 rev = dep.state.checkoutState.revision; 31 31 sha256 = hashes.${dep.subpath}; 32 + fetchSubmodules = true; 32 33 })) workspaceState.object.dependencies 33 34 ); 34 35
+1 -1
pkgs/development/tools/swiftpm2nix/swiftpm2nix.sh
··· 23 23 jq -r '.object.dependencies[] | "\(.subpath) \(.packageRef.location) \(.state.checkoutState.revision)"' $stateFile \ 24 24 | while read -r name url rev; do 25 25 echo >&2 "-- Fetching $name" 26 - sha256="$(nix-prefetch-git $url $rev | jq -r .sha256)" 26 + sha256="$(nix-prefetch-git --fetch-submodules $url $rev | jq -r .sha256)" 27 27 hashes+=" 28 28 \"$name\" = \"$sha256\";" 29 29 echo >&2