multipass: fix broken fetch of git submodules in build

This commit is contained in:
Jon Seager 2023-11-20 09:30:15 +00:00 committed by Dawid Dziurla
parent c757e9bd77
commit 2d706ffaf3
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -46,8 +46,14 @@ stdenv.mkDerivation
owner = "canonical";
repo = "multipass";
rev = "refs/tags/v${version}";
hash = "sha256-OWZiVw3ztx1g1slq/5a7/JcLdDNB5RqYT5U3w1UXUpg=";
hash = "sha256-1k0jbYMwfYuHmM/Cm76sbo3+mN6WypALMQBwlZ+9d+c=";
fetchSubmodules = true;
leaveDotGit = true;
postFetch = ''
# Workaround for https://github.com/NixOS/nixpkgs/issues/8567
cd $out
rm -rf .git
'';
};
patches = [