fix: remove existing VCS_TYPE in patchAmentVendorGit

This commit is contained in:
Max Beutelspacher 2025-04-15 17:21:54 +02:00
parent 4072d6ed51
commit fdd6ed3811

View file

@ -109,6 +109,7 @@
# CMake ExternalProject patches are applied with git apply
nativeBuildInputs = nativeBuildInputs ++ [ self.git ];
postPatch = (if pathExists vendoredSourceJson then ''
sed -i '/VCS_TYPE \(git\|zip\|svn\|path\)/d' ${lib.escapeShellArg file}
sed -i '\|VCS_URL\s*|c\
VCS_URL "file://${vendor}"\
VCS_TYPE tar' \