Unverified Commit 70619b3b authored by Konrad Malik's avatar Konrad Malik
Browse files

dotnet: expose update.sh under generate-dotnet-sdk

parent a99d4ba9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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}");