dotnetCorePackages.dotnet_10.vmr: fix build on bash 5.3 (#431056)

This commit is contained in:
David McFarland 2025-08-07 14:56:47 -03:00 committed by GitHub
commit e960ddc1a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,6 +230,8 @@ stdenv.mkDerivation rec {
substituteInPlace \
src/runtime/src/coreclr/ilasm/CMakeLists.txt \
--replace-fail 'set_source_files_properties( prebuilt/asmparse.cpp PROPERTIES COMPILE_FLAGS "-O0" )' ""
''
+ lib.optionalString (lib.versionOlder version "10") ''
# https://github.com/dotnet/source-build/issues/4444
xmlstarlet ed \
@ -237,8 +239,6 @@ stdenv.mkDerivation rec {
-s '//Project/Target/MSBuild[@Targets="Restore"]' \
-t attr -n Properties -v "NUGET_PACKAGES='\$(CurrentRepoSourceBuildPackageCache)'" \
src/aspnetcore/eng/Tools.props
''
+ lib.optionalString (lib.versionOlder version "10") ''
# patch packages installed from npm cache
xmlstarlet ed \
--inplace \