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

authored by David McFarland and committed by GitHub e3beaa67 c6e14ddd

+6 -1
+6 -1
pkgs/development/compilers/dotnet/default.nix
··· 11 11 recurseIntoAttrs, 12 12 generateSplicesForMkScope, 13 13 makeScopeWithSplicing', 14 - stdenvNoCC, 14 + writeScriptBin, 15 15 }: 16 16 17 17 let ··· 69 69 // lib.mapAttrs' (k: v: lib.nameValuePair "${k}-bin" v) dotnet-bin 70 70 // { 71 71 inherit callPackage fetchNupkg buildDotnetSdk; 72 + 73 + generate-dotnet-sdk = writeScriptBin "generate-dotnet-sdk" ( 74 + # Don't include current nixpkgs in the exposed version. We want to make the script runnable without nixpkgs repo. 75 + builtins.replaceStrings [ " -I nixpkgs=./." ] [ "" ] (builtins.readFile ./update.sh) 76 + ); 72 77 73 78 # Convert a "stdenv.hostPlatform.system" to a dotnet RID 74 79 systemToDotnetRid =