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

Changed files
+6 -1
pkgs
development
compilers
dotnet
+6 -1
pkgs/development/compilers/dotnet/default.nix
···
recurseIntoAttrs,
generateSplicesForMkScope,
makeScopeWithSplicing',
-
stdenvNoCC,
+
writeScriptBin,
}:
let
···
// lib.mapAttrs' (k: v: lib.nameValuePair "${k}-bin" v) dotnet-bin
// {
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 =