Skip to content

Commit e3beaa6

Browse files
authored
dotnet: expose update.sh under generate-dotnet-sdk (#405282)
2 parents c6e14dd + 70619b3 commit e3beaa6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkgs/development/compilers/dotnet/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
recurseIntoAttrs,
1212
generateSplicesForMkScope,
1313
makeScopeWithSplicing',
14-
stdenvNoCC,
14+
writeScriptBin,
1515
}:
1616

1717
let
@@ -70,6 +70,11 @@ let
7070
// {
7171
inherit callPackage fetchNupkg buildDotnetSdk;
7272

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+
);
77+
7378
# Convert a "stdenv.hostPlatform.system" to a dotnet RID
7479
systemToDotnetRid =
7580
system: runtimeIdentifierMap.${system} or (throw "unsupported platform ${system}");

0 commit comments

Comments
 (0)