dotnet: expose update.sh under generate-dotnet-sdk (#405282)

This commit is contained in:
David McFarland
2025-05-17 21:10:10 -03:00
committed by GitHub
@@ -11,7 +11,7 @@
recurseIntoAttrs,
generateSplicesForMkScope,
makeScopeWithSplicing',
stdenvNoCC,
writeScriptBin,
}:
let
@@ -70,6 +70,11 @@ let
// {
inherit callPackage fetchNupkg buildDotnetSdk;
generate-dotnet-sdk = writeScriptBin "generate-dotnet-sdk" (
# Don't include current nixpkgs in the exposed version. We want to make the script runnable without nixpkgs repo.
builtins.replaceStrings [ " -I nixpkgs=./." ] [ "" ] (builtins.readFile ./update.sh)
);
# Convert a "stdenv.hostPlatform.system" to a dotnet RID
systemToDotnetRid =
system: runtimeIdentifierMap.${system} or (throw "unsupported platform ${system}");