dotnet: default to source-built sdk/runtimes (#363008)
This commit is contained in:
commit
b7614895ef
@ -15,7 +15,7 @@ in
|
|||||||
zlib,
|
zlib,
|
||||||
python3,
|
python3,
|
||||||
lldb,
|
lldb,
|
||||||
dotnet-sdk_8,
|
dotnetCorePackages,
|
||||||
maven,
|
maven,
|
||||||
openssl,
|
openssl,
|
||||||
expat,
|
expat,
|
||||||
@ -44,6 +44,8 @@ let
|
|||||||
|
|
||||||
products = versions.${system} or (throw "Unsupported system: ${system}");
|
products = versions.${system} or (throw "Unsupported system: ${system}");
|
||||||
|
|
||||||
|
dotnet-sdk = dotnetCorePackages.sdk_8_0-source;
|
||||||
|
|
||||||
package = if stdenv.hostPlatform.isDarwin then ./bin/darwin.nix else ./bin/linux.nix;
|
package = if stdenv.hostPlatform.isDarwin then ./bin/darwin.nix else ./bin/linux.nix;
|
||||||
mkJetBrainsProductCore = callPackage package { inherit vmopts; };
|
mkJetBrainsProductCore = callPackage package { inherit vmopts; };
|
||||||
mkMeta = meta: fromSource: {
|
mkMeta = meta: fromSource: {
|
||||||
@ -188,7 +190,7 @@ rec {
|
|||||||
|
|
||||||
for dir in plugins/clion-radler/DotFiles/linux-*; do
|
for dir in plugins/clion-radler/DotFiles/linux-*; do
|
||||||
rm -rf $dir/dotnet
|
rm -rf $dir/dotnet
|
||||||
ln -s ${dotnet-sdk_8.unwrapped}/share/dotnet $dir/dotnet
|
ln -s ${dotnet-sdk}/share/dotnet $dir/dotnet
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
@ -352,7 +354,7 @@ rec {
|
|||||||
|
|
||||||
for dir in lib/ReSharperHost/linux-*; do
|
for dir in lib/ReSharperHost/linux-*; do
|
||||||
rm -rf $dir/dotnet
|
rm -rf $dir/dotnet
|
||||||
ln -s ${dotnet-sdk_8.unwrapped}/share/dotnet $dir/dotnet
|
ln -s ${dotnet-sdk}/share/dotnet $dir/dotnet
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|||||||
@ -106,6 +106,9 @@ rustPlatform.buildRustPackage {
|
|||||||
-p:Deterministic=true
|
-p:Deterministic=true
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# NuGet.targets(156,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json.
|
||||||
|
NuGetAudit = "false";
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit (dotnetBuild) fetch-deps;
|
inherit (dotnetBuild) fetch-deps;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -26,8 +26,8 @@ let
|
|||||||
dotnet-sdk =
|
dotnet-sdk =
|
||||||
with dotnetCorePackages;
|
with dotnetCorePackages;
|
||||||
combinePackages [
|
combinePackages [
|
||||||
sdk_7_0_1xx
|
sdk_7_0_1xx-bin
|
||||||
runtime_6_0
|
runtime_6_0-bin
|
||||||
];
|
];
|
||||||
|
|
||||||
npmDepsFile = ./npm-deps.nix;
|
npmDepsFile = ./npm-deps.nix;
|
||||||
|
|||||||
@ -21,11 +21,11 @@ buildDotnetModule rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
dotnet-sdk = with dotnetCorePackages; combinePackages [
|
dotnet-sdk = with dotnetCorePackages; combinePackages [
|
||||||
sdk_7_0
|
sdk_7_0-bin
|
||||||
sdk_6_0
|
sdk_6_0-bin
|
||||||
];
|
];
|
||||||
|
|
||||||
dotnet-runtime = dotnetCorePackages.runtime_7_0;
|
dotnet-runtime = dotnetCorePackages.runtime_7_0-bin;
|
||||||
|
|
||||||
projectFile = [ "BeatSaberModManager/BeatSaberModManager.csproj" ];
|
projectFile = [ "BeatSaberModManager/BeatSaberModManager.csproj" ];
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,7 @@ buildDotnetModule rec {
|
|||||||
|
|
||||||
nugetDeps = ./deps.json;
|
nugetDeps = ./deps.json;
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
dotnet-sdk = dotnetCorePackages.sdk_8_0_4xx-bin;
|
||||||
|
|
||||||
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
||||||
|
|
||||||
|
|||||||
@ -9,8 +9,8 @@ let
|
|||||||
pname = "bililiverecorder";
|
pname = "bililiverecorder";
|
||||||
|
|
||||||
dotnet = with dotnetCorePackages; combinePackages [
|
dotnet = with dotnetCorePackages; combinePackages [
|
||||||
runtime_6_0
|
runtime_6_0-bin
|
||||||
aspnetcore_6_0
|
aspnetcore_6_0-bin
|
||||||
];
|
];
|
||||||
|
|
||||||
version = "2.13.0";
|
version = "2.13.0";
|
||||||
|
|||||||
@ -17,7 +17,7 @@ buildDotnetModule rec {
|
|||||||
hash = "sha256-IWtYbb1IFB6DLIYYTP+q7q+h/0aqonxr/mWwf+83aRo=";
|
hash = "sha256-IWtYbb1IFB6DLIYYTP+q7q+h/0aqonxr/mWwf+83aRo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
dotnet-sdk = dotnetCorePackages.sdk_6_0-bin;
|
||||||
projectFile = [ "Source/Boogie.sln" ];
|
projectFile = [ "Source/Boogie.sln" ];
|
||||||
nugetDeps = ./deps.json;
|
nugetDeps = ./deps.json;
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
makeWrapper,
|
makeWrapper,
|
||||||
ncurses5,
|
ncurses5,
|
||||||
|
|
||||||
dotnet-sdk_8,
|
dotnetCorePackages,
|
||||||
dotnetSupport ? false,
|
dotnetSupport ? false,
|
||||||
|
|
||||||
alsa-lib,
|
alsa-lib,
|
||||||
@ -33,7 +33,7 @@
|
|||||||
let
|
let
|
||||||
dyalogHome = "$out/lib/dyalog";
|
dyalogHome = "$out/lib/dyalog";
|
||||||
|
|
||||||
makeWrapperArgs = lib.optional dotnetSupport "--set DOTNET_ROOT ${dotnet-sdk_8}/share/dotnet";
|
makeWrapperArgs = lib.optional dotnetSupport "--set DOTNET_ROOT ${dotnetCorePackages.sdk_8_0-source}/share/dotnet";
|
||||||
|
|
||||||
licenseUrl = "https://www.dyalog.com/uploads/documents/Developer_Software_Licence.pdf";
|
licenseUrl = "https://www.dyalog.com/uploads/documents/Developer_Software_Licence.pdf";
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ buildDotnetModule rec {
|
|||||||
hash = "sha256-hUURXPKhiI3n1BrW8IzVVmPuJyO4AxM8D5uluaJXk+4=";
|
hash = "sha256-hUURXPKhiI3n1BrW8IzVVmPuJyO4AxM8D5uluaJXk+4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
dotnet-sdk = dotnetCorePackages.sdk_8_0_4xx;
|
||||||
projectFile = "src/gei/gei.csproj";
|
projectFile = "src/gei/gei.csproj";
|
||||||
nugetDeps = ./deps.json; # File generated with `nix-build -A gh-gei.passthru.fetch-deps`.
|
nugetDeps = ./deps.json; # File generated with `nix-build -A gh-gei.passthru.fetch-deps`.
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
buildPackages,
|
buildPackages,
|
||||||
dbus,
|
dbus,
|
||||||
dotnet-sdk_6,
|
dotnet-sdk_6,
|
||||||
dotnet-sdk_8,
|
|
||||||
dotnetCorePackages,
|
dotnetCorePackages,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
fontconfig,
|
fontconfig,
|
||||||
@ -60,6 +59,8 @@ let
|
|||||||
|
|
||||||
arch = stdenv.hostPlatform.linuxArch;
|
arch = stdenv.hostPlatform.linuxArch;
|
||||||
|
|
||||||
|
dotnet-sdk = dotnetCorePackages.sdk_8_0-source;
|
||||||
|
|
||||||
attrs = finalAttrs: rec {
|
attrs = finalAttrs: rec {
|
||||||
pname = "godot4${suffix}";
|
pname = "godot4${suffix}";
|
||||||
version = "4.3-stable";
|
version = "4.3-stable";
|
||||||
@ -154,7 +155,7 @@ let
|
|||||||
]
|
]
|
||||||
++ lib.optionals withWayland [ wayland-scanner ]
|
++ lib.optionals withWayland [ wayland-scanner ]
|
||||||
++ lib.optionals withMono [
|
++ lib.optionals withMono [
|
||||||
dotnet-sdk_8
|
dotnet-sdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -222,10 +223,10 @@ let
|
|||||||
+ lib.optionalString withMono ''
|
+ lib.optionalString withMono ''
|
||||||
cp -r bin/GodotSharp/ $out/bin/
|
cp -r bin/GodotSharp/ $out/bin/
|
||||||
wrapProgram $out/bin/godot4${suffix} \
|
wrapProgram $out/bin/godot4${suffix} \
|
||||||
--set DOTNET_ROOT ${dotnet-sdk_8} \
|
--set DOTNET_ROOT ${dotnet-sdk} \
|
||||||
--prefix PATH : "${
|
--prefix PATH : "${
|
||||||
lib.makeBinPath [
|
lib.makeBinPath [
|
||||||
dotnet-sdk_8
|
dotnet-sdk
|
||||||
]
|
]
|
||||||
}"
|
}"
|
||||||
''
|
''
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
dotnet-sdk = dotnetCorePackages.sdk_6_0-bin;
|
||||||
|
|
||||||
xplat = fetchurl {
|
xplat = fetchurl {
|
||||||
url = "https://github.com/mono/msbuild/releases/download/v16.9.0/mono_msbuild_6.12.0.137.zip";
|
url = "https://github.com/mono/msbuild/releases/download/v16.9.0/mono_msbuild_6.12.0.137.zip";
|
||||||
|
|||||||
@ -33,7 +33,7 @@ buildDotnetModule rec {
|
|||||||
inherit
|
inherit
|
||||||
(combinePackages [
|
(combinePackages [
|
||||||
sdk_8_0
|
sdk_8_0
|
||||||
sdk_6_0
|
sdk_6_0-bin
|
||||||
])
|
])
|
||||||
packages
|
packages
|
||||||
targetPackages
|
targetPackages
|
||||||
|
|||||||
@ -21,7 +21,7 @@ buildDotnetModule rec {
|
|||||||
sha256 = "1n2312acq5rq0jizlcfk0crslx3wgcsd836p47nk3pnapzw0cqvv";
|
sha256 = "1n2312acq5rq0jizlcfk0crslx3wgcsd836p47nk3pnapzw0cqvv";
|
||||||
};
|
};
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
dotnet-sdk = dotnetCorePackages.sdk_6_0-bin;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
unzip
|
unzip
|
||||||
|
|||||||
@ -30,8 +30,8 @@ buildDotnetModule rec {
|
|||||||
|
|
||||||
executables = [ "PabloDraw" ];
|
executables = [ "PabloDraw" ];
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_7_0;
|
dotnet-sdk = dotnetCorePackages.sdk_7_0-bin;
|
||||||
dotnet-runtime = dotnetCorePackages.runtime_7_0;
|
dotnet-runtime = dotnetCorePackages.runtime_7_0-bin;
|
||||||
|
|
||||||
nugetDeps = ./deps.json;
|
nugetDeps = ./deps.json;
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ buildDotnetModule rec {
|
|||||||
hash = "sha256-4iXabFp0LqJ8TXOrqeD+oTAocg6ZTIfijfX3s3fMJuI=";
|
hash = "sha256-4iXabFp0LqJ8TXOrqeD+oTAocg6ZTIfijfX3s3fMJuI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
dotnet-sdk = dotnetCorePackages.sdk_6_0-bin;
|
||||||
|
|
||||||
projectFile = [ "src/NuGet/Microsoft.Net.Compilers.Toolset/Microsoft.Net.Compilers.Toolset.Package.csproj" ];
|
projectFile = [ "src/NuGet/Microsoft.Net.Compilers.Toolset/Microsoft.Net.Compilers.Toolset.Package.csproj" ];
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ buildDotnetModule rec {
|
|||||||
|
|
||||||
enableParallelBuilding = false;
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
dotnet-sdk = dotnetCorePackages.sdk_8_0_4xx-bin;
|
||||||
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
||||||
|
|
||||||
nugetDeps = ./deps.json;
|
nugetDeps = ./deps.json;
|
||||||
|
|||||||
@ -69,8 +69,8 @@ buildDotnetModule {
|
|||||||
|
|
||||||
runtimeDeps = [ sqlite ];
|
runtimeDeps = [ sqlite ];
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
dotnet-sdk = dotnetCorePackages.sdk_6_0-bin;
|
||||||
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
|
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0-bin;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
|||||||
@ -22,8 +22,8 @@ buildDotnetModule rec {
|
|||||||
projectFile = "WalletWasabi.Backend/WalletWasabi.Backend.csproj";
|
projectFile = "WalletWasabi.Backend/WalletWasabi.Backend.csproj";
|
||||||
nugetDeps = ./deps.json;
|
nugetDeps = ./deps.json;
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_7_0;
|
dotnet-sdk = dotnetCorePackages.sdk_7_0-bin;
|
||||||
dotnet-runtime = dotnetCorePackages.aspnetcore_7_0;
|
dotnet-runtime = dotnetCorePackages.aspnetcore_7_0-bin;
|
||||||
|
|
||||||
buildInputs = [(lib.getLib stdenv.cc.cc) zlib];
|
buildInputs = [(lib.getLib stdenv.cc.cc) zlib];
|
||||||
|
|
||||||
|
|||||||
@ -5,5 +5,5 @@
|
|||||||
releaseInfoFile = ./release-info.json;
|
releaseInfoFile = ./release-info.json;
|
||||||
bootstrapSdkFile = ./bootstrap-sdk.nix;
|
bootstrapSdkFile = ./bootstrap-sdk.nix;
|
||||||
depsFile = ./deps.json;
|
depsFile = ./deps.json;
|
||||||
fallbackTargetPackages = dotnetCorePackages.sdk_8_0.targetPackages;
|
fallbackTargetPackages = dotnetCorePackages.sdk_8_0-bin.targetPackages;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,5 +6,5 @@
|
|||||||
bootstrapSdkFile = ./bootstrap-sdk.nix;
|
bootstrapSdkFile = ./bootstrap-sdk.nix;
|
||||||
allowPrerelease = true;
|
allowPrerelease = true;
|
||||||
depsFile = ./deps.json;
|
depsFile = ./deps.json;
|
||||||
fallbackTargetPackages = dotnetCorePackages.sdk_9_0.targetPackages;
|
fallbackTargetPackages = dotnetCorePackages.sdk_9_0-bin.targetPackages;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ in
|
|||||||
assert lib.assertMsg ((builtins.length dotnetPackages) > 0) ''
|
assert lib.assertMsg ((builtins.length dotnetPackages) > 0) ''
|
||||||
You must include at least one package, e.g
|
You must include at least one package, e.g
|
||||||
`with dotnetCorePackages; combinePackages [
|
`with dotnetCorePackages; combinePackages [
|
||||||
sdk_6_0 aspnetcore_7_0
|
sdk_9_0 aspnetcore_8_0
|
||||||
];`'';
|
];`'';
|
||||||
mkWrapper "sdk" (buildEnv {
|
mkWrapper "sdk" (buildEnv {
|
||||||
name = "dotnet-combined";
|
name = "dotnet-combined";
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
How to combine packages for use in development:
|
How to combine packages for use in development:
|
||||||
dotnetCombined = with dotnetCorePackages; combinePackages [ sdk_6_0 aspnetcore_7_0 ];
|
dotnetCombined = with dotnetCorePackages; combinePackages [ sdk_9_0 aspnetcore_8_0 ];
|
||||||
|
|
||||||
Hashes and urls are retrieved from:
|
Hashes and urls are retrieved from:
|
||||||
https://dotnet.microsoft.com/download/dotnet
|
https://dotnet.microsoft.com/download/dotnet
|
||||||
@ -13,74 +13,115 @@
|
|||||||
makeScopeWithSplicing',
|
makeScopeWithSplicing',
|
||||||
}:
|
}:
|
||||||
|
|
||||||
makeScopeWithSplicing' {
|
let
|
||||||
otherSplices = generateSplicesForMkScope "dotnetCorePackages";
|
pkgs = makeScopeWithSplicing' {
|
||||||
f = (
|
otherSplices = generateSplicesForMkScope "dotnetCorePackages";
|
||||||
self:
|
f = (
|
||||||
let
|
self:
|
||||||
callPackage = self.callPackage;
|
let
|
||||||
|
callPackage = self.callPackage;
|
||||||
|
|
||||||
fetchNupkg = callPackage ../../../build-support/dotnet/fetch-nupkg { };
|
fetchNupkg = callPackage ../../../build-support/dotnet/fetch-nupkg { };
|
||||||
|
|
||||||
buildDotnet = attrs: callPackage (import ./build-dotnet.nix attrs) { };
|
buildDotnet = attrs: callPackage (import ./build-dotnet.nix attrs) { };
|
||||||
buildDotnetSdk =
|
buildDotnetSdk =
|
||||||
version:
|
version:
|
||||||
import version {
|
import version {
|
||||||
inherit fetchNupkg;
|
inherit fetchNupkg;
|
||||||
buildAspNetCore = attrs: buildDotnet (attrs // { type = "aspnetcore"; });
|
buildAspNetCore = attrs: buildDotnet (attrs // { type = "aspnetcore"; });
|
||||||
buildNetRuntime = attrs: buildDotnet (attrs // { type = "runtime"; });
|
buildNetRuntime = attrs: buildDotnet (attrs // { type = "runtime"; });
|
||||||
buildNetSdk = attrs: buildDotnet (attrs // { type = "sdk"; });
|
buildNetSdk = attrs: buildDotnet (attrs // { type = "sdk"; });
|
||||||
|
};
|
||||||
|
|
||||||
|
## Files in versions/ are generated automatically by update.sh ##
|
||||||
|
dotnet-bin = lib.mergeAttrsList (
|
||||||
|
map buildDotnetSdk [
|
||||||
|
./versions/6.0.nix
|
||||||
|
./versions/7.0.nix
|
||||||
|
./versions/8.0.nix
|
||||||
|
./versions/9.0.nix
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
runtimeIdentifierMap = {
|
||||||
|
"x86_64-linux" = "linux-x64";
|
||||||
|
"aarch64-linux" = "linux-arm64";
|
||||||
|
"x86_64-darwin" = "osx-x64";
|
||||||
|
"aarch64-darwin" = "osx-arm64";
|
||||||
|
"x86_64-windows" = "win-x64";
|
||||||
|
"i686-windows" = "win-x86";
|
||||||
};
|
};
|
||||||
|
|
||||||
## Files in versions/ are generated automatically by update.sh ##
|
in
|
||||||
dotnet_6_0 = buildDotnetSdk ./versions/6.0.nix;
|
lib.optionalAttrs config.allowAliases (
|
||||||
dotnet_7_0 = buildDotnetSdk ./versions/7.0.nix;
|
{
|
||||||
dotnet_8_0 = buildDotnetSdk ./versions/8.0.nix;
|
# EOL
|
||||||
dotnet_9_0 = buildDotnetSdk ./versions/9.0.nix;
|
sdk_2_1 = throw "Dotnet SDK 2.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
||||||
|
sdk_2_2 = throw "Dotnet SDK 2.2 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
||||||
|
sdk_3_0 = throw "Dotnet SDK 3.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
||||||
|
sdk_3_1 = throw "Dotnet SDK 3.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
||||||
|
sdk_5_0 = throw "Dotnet SDK 5.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
||||||
|
}
|
||||||
|
// dotnet-bin
|
||||||
|
)
|
||||||
|
// lib.mapAttrs' (k: v: lib.nameValuePair "${k}-bin" v) dotnet-bin
|
||||||
|
// {
|
||||||
|
inherit callPackage fetchNupkg buildDotnetSdk;
|
||||||
|
|
||||||
runtimeIdentifierMap = {
|
# Convert a "stdenv.hostPlatform.system" to a dotnet RID
|
||||||
"x86_64-linux" = "linux-x64";
|
systemToDotnetRid =
|
||||||
"aarch64-linux" = "linux-arm64";
|
system: runtimeIdentifierMap.${system} or (throw "unsupported platform ${system}");
|
||||||
"x86_64-darwin" = "osx-x64";
|
|
||||||
"aarch64-darwin" = "osx-arm64";
|
|
||||||
"x86_64-windows" = "win-x64";
|
|
||||||
"i686-windows" = "win-x86";
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
combinePackages = attrs: callPackage (import ./combine-packages.nix attrs) { };
|
||||||
{
|
|
||||||
inherit callPackage fetchNupkg buildDotnetSdk;
|
|
||||||
|
|
||||||
# Convert a "stdenv.hostPlatform.system" to a dotnet RID
|
patchNupkgs = callPackage ./patch-nupkgs.nix { };
|
||||||
systemToDotnetRid =
|
nugetPackageHook = callPackage ./nuget-package-hook.nix { };
|
||||||
system: runtimeIdentifierMap.${system} or (throw "unsupported platform ${system}");
|
|
||||||
|
|
||||||
combinePackages = attrs: callPackage (import ./combine-packages.nix attrs) { };
|
buildDotnetModule = callPackage ../../../build-support/dotnet/build-dotnet-module { };
|
||||||
|
buildDotnetGlobalTool = callPackage ../../../build-support/dotnet/build-dotnet-global-tool { };
|
||||||
|
|
||||||
patchNupkgs = callPackage ./patch-nupkgs.nix { };
|
mkNugetSource = callPackage ../../../build-support/dotnet/make-nuget-source { };
|
||||||
nugetPackageHook = callPackage ./nuget-package-hook.nix { };
|
mkNugetDeps = callPackage ../../../build-support/dotnet/make-nuget-deps { };
|
||||||
|
addNuGetDeps = callPackage ../../../build-support/dotnet/add-nuget-deps { };
|
||||||
|
|
||||||
buildDotnetModule = callPackage ../../../build-support/dotnet/build-dotnet-module { };
|
dotnet_8 = recurseIntoAttrs (callPackage ./8 { });
|
||||||
buildDotnetGlobalTool = callPackage ../../../build-support/dotnet/build-dotnet-global-tool { };
|
dotnet_9 = recurseIntoAttrs (callPackage ./9 { });
|
||||||
|
}
|
||||||
mkNugetSource = callPackage ../../../build-support/dotnet/make-nuget-source { };
|
);
|
||||||
mkNugetDeps = callPackage ../../../build-support/dotnet/make-nuget-deps { };
|
};
|
||||||
addNuGetDeps = callPackage ../../../build-support/dotnet/add-nuget-deps { };
|
in
|
||||||
|
pkgs
|
||||||
dotnet_8 = recurseIntoAttrs (callPackage ./8 { });
|
// rec {
|
||||||
dotnet_9 = recurseIntoAttrs (callPackage ./9 { });
|
# use binary SDK here to avoid downgrading feature band
|
||||||
}
|
sdk_8_0_1xx = if !pkgs.dotnet_8.vmr.meta.broken then pkgs.dotnet_8.sdk else pkgs.sdk_8_0_1xx-bin;
|
||||||
// lib.optionalAttrs config.allowAliases {
|
# source-built SDK only exists for _1xx feature band
|
||||||
# EOL
|
sdk_8_0_4xx = pkgs.callPackage ./wrapper.nix { } "sdk" (
|
||||||
sdk_2_1 = throw "Dotnet SDK 2.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
pkgs.sdk_8_0_4xx-bin.unwrapped.overrideAttrs (old: {
|
||||||
sdk_2_2 = throw "Dotnet SDK 2.2 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
passthru =
|
||||||
sdk_3_0 = throw "Dotnet SDK 3.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
old.passthru
|
||||||
sdk_3_1 = throw "Dotnet SDK 3.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
// {
|
||||||
sdk_5_0 = throw "Dotnet SDK 5.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
|
inherit (sdk_8_0_1xx)
|
||||||
}
|
runtime
|
||||||
// dotnet_6_0
|
aspnetcore
|
||||||
// dotnet_7_0
|
;
|
||||||
// dotnet_8_0
|
}
|
||||||
// dotnet_9_0
|
# We can't use the source-built packages until ilcompiler is fixed (see vmr.nix)
|
||||||
|
// lib.optionalAttrs sdk_8_0_1xx.hasILCompiler {
|
||||||
|
inherit (sdk_8_0_1xx)
|
||||||
|
packages
|
||||||
|
targetPackages
|
||||||
|
;
|
||||||
|
};
|
||||||
|
})
|
||||||
);
|
);
|
||||||
|
sdk_8_0 = sdk_8_0_4xx;
|
||||||
|
sdk_8_0-source = sdk_8_0_1xx;
|
||||||
|
runtime_8_0 = sdk_8_0.runtime;
|
||||||
|
aspnetcore_8_0 = sdk_8_0.aspnetcore;
|
||||||
|
}
|
||||||
|
// rec {
|
||||||
|
sdk_9_0_1xx = if !pkgs.dotnet_9.vmr.meta.broken then pkgs.dotnet_9.sdk else pkgs.sdk_9_0_1xx-bin;
|
||||||
|
sdk_9_0 = sdk_9_0_1xx;
|
||||||
|
runtime_9_0 = sdk_9_0.runtime;
|
||||||
|
aspnetcore_9_0 = sdk_9_0.aspnetcore;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,6 +25,11 @@ let
|
|||||||
+ ''
|
+ ''
|
||||||
ln -s ${vmr.man} $man
|
ln -s ${vmr.man} $man
|
||||||
'';
|
'';
|
||||||
|
propagatedSandboxProfile = lib.optionalString stdenvNoCC.hostPlatform.isDarwin ''
|
||||||
|
(allow file-read* (subpath "/private/var/db/mds/system"))
|
||||||
|
(allow mach-lookup (global-name "com.apple.SecurityServer")
|
||||||
|
(global-name "com.apple.system.opendirectoryd.membership"))
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -66,8 +71,12 @@ let
|
|||||||
version=''${version,,}
|
version=''${version,,}
|
||||||
mkdir -p "$out"/share/nuget/packages/"$id"
|
mkdir -p "$out"/share/nuget/packages/"$id"
|
||||||
cp -r . "$out"/share/nuget/packages/"$id"/"$version"
|
cp -r . "$out"/share/nuget/packages/"$id"/"$version"
|
||||||
chmod +w "$out"/share/nuget/packages/"$id"/"$version"
|
cd "$out"/share/nuget/packages/"$id"/"$version"
|
||||||
echo {} > "$out"/share/nuget/packages/"$id"/"$version"/.nupkg.metadata
|
chmod +w .
|
||||||
|
for dir in tools runtimes/*/native; do
|
||||||
|
[[ ! -d "$dir" ]] || chmod -R +x "$dir"
|
||||||
|
done
|
||||||
|
echo {} > .nupkg.metadata
|
||||||
)
|
)
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|||||||
@ -481,5 +481,8 @@ stdenv.mkDerivation rec {
|
|||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
];
|
];
|
||||||
|
# build deadlocks intermittently on rosetta
|
||||||
|
# https://github.com/dotnet/runtime/issues/111628
|
||||||
|
broken = stdenv.hostPlatform.system == "x86_64-darwin";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -204,6 +204,13 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
|||||||
runtime = null;
|
runtime = null;
|
||||||
run = checkConsoleOutput "$src/bin/test";
|
run = checkConsoleOutput "$src/bin/test";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ready-to-run = mkConsoleTest {
|
||||||
|
name = "ready-to-run";
|
||||||
|
usePackageSource = true;
|
||||||
|
build = "dotnet publish --use-current-runtime -p:PublishReadyToRun=true -o $out/bin";
|
||||||
|
run = checkConsoleOutput "$src/bin/test";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs finalAttrs.finalPackage.hasILCompiler {
|
// lib.optionalAttrs finalAttrs.finalPackage.hasILCompiler {
|
||||||
aot = mkConsoleTest {
|
aot = mkConsoleTest {
|
||||||
|
|||||||
@ -28,7 +28,7 @@ buildDotnetModule rec {
|
|||||||
|
|
||||||
nugetDeps = ./deps.json;
|
nugetDeps = ./deps.json;
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
dotnet-sdk = dotnetCorePackages.sdk_8_0_4xx-bin;
|
||||||
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|||||||
@ -17,8 +17,8 @@ buildDotnetModule rec {
|
|||||||
|
|
||||||
nugetDeps = engine.deps;
|
nugetDeps = engine.deps;
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
dotnet-sdk = dotnetCorePackages.sdk_6_0-bin;
|
||||||
dotnet-runtime = dotnetCorePackages.runtime_6_0;
|
dotnet-runtime = dotnetCorePackages.runtime_6_0-bin;
|
||||||
|
|
||||||
useAppHost = false;
|
useAppHost = false;
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,15 @@ buildDotnetModule rec {
|
|||||||
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
|
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
||||||
|
|
||||||
dotnetInstallFlags = [ "-p:TargetFramework=net8.0" ];
|
dotnetInstallFlags = [
|
||||||
|
"--framework"
|
||||||
|
"net8.0"
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace ${projectFile} ${testProjectFile} \
|
||||||
|
--replace-fail '<TargetFrameworks>net8.0;net462</' '<TargetFrameworks>net8.0</'
|
||||||
|
'';
|
||||||
|
|
||||||
runtimeDeps = [ openssl ];
|
runtimeDeps = [ openssl ];
|
||||||
|
|
||||||
|
|||||||
885
pkgs/servers/jackett/deps.json
generated
885
pkgs/servers/jackett/deps.json
generated
File diff suppressed because it is too large
Load Diff
@ -27,8 +27,8 @@ buildDotnetModule rec {
|
|||||||
# Fixes application reporting 0.0.0.0 as its version.
|
# Fixes application reporting 0.0.0.0 as its version.
|
||||||
MINVERVERSIONOVERRIDE = version;
|
MINVERVERSIONOVERRIDE = version;
|
||||||
|
|
||||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
dotnet-sdk = dotnetCorePackages.sdk_6_0-bin;
|
||||||
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
|
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0-bin;
|
||||||
|
|
||||||
nativeBuildInputs = [ git glibcLocales bintools ];
|
nativeBuildInputs = [ git glibcLocales bintools ];
|
||||||
|
|
||||||
|
|||||||
@ -411,18 +411,18 @@ with pkgs;
|
|||||||
|
|
||||||
dotnetCorePackages = recurseIntoAttrs (callPackage ../development/compilers/dotnet {});
|
dotnetCorePackages = recurseIntoAttrs (callPackage ../development/compilers/dotnet {});
|
||||||
|
|
||||||
dotnet-sdk_6 = dotnetCorePackages.sdk_6_0;
|
dotnet-sdk_6 = dotnetCorePackages.sdk_6_0-bin;
|
||||||
dotnet-sdk_7 = dotnetCorePackages.sdk_7_0;
|
dotnet-sdk_7 = dotnetCorePackages.sdk_7_0-bin;
|
||||||
dotnet-sdk_8 = dotnetCorePackages.sdk_8_0;
|
dotnet-sdk_8 = dotnetCorePackages.sdk_8_0;
|
||||||
dotnet-sdk_9 = dotnetCorePackages.sdk_9_0;
|
dotnet-sdk_9 = dotnetCorePackages.sdk_9_0;
|
||||||
|
|
||||||
dotnet-runtime_6 = dotnetCorePackages.runtime_6_0;
|
dotnet-runtime_6 = dotnetCorePackages.runtime_6_0-bin;
|
||||||
dotnet-runtime_7 = dotnetCorePackages.runtime_7_0;
|
dotnet-runtime_7 = dotnetCorePackages.runtime_7_0-bin;
|
||||||
dotnet-runtime_8 = dotnetCorePackages.runtime_8_0;
|
dotnet-runtime_8 = dotnetCorePackages.runtime_8_0;
|
||||||
dotnet-runtime_9 = dotnetCorePackages.runtime_9_0;
|
dotnet-runtime_9 = dotnetCorePackages.runtime_9_0;
|
||||||
|
|
||||||
dotnet-aspnetcore_6 = dotnetCorePackages.aspnetcore_6_0;
|
dotnet-aspnetcore_6 = dotnetCorePackages.aspnetcore_6_0-bin;
|
||||||
dotnet-aspnetcore_7 = dotnetCorePackages.aspnetcore_7_0;
|
dotnet-aspnetcore_7 = dotnetCorePackages.aspnetcore_7_0-bin;
|
||||||
dotnet-aspnetcore_8 = dotnetCorePackages.aspnetcore_8_0;
|
dotnet-aspnetcore_8 = dotnetCorePackages.aspnetcore_8_0;
|
||||||
dotnet-aspnetcore_9 = dotnetCorePackages.aspnetcore_9_0;
|
dotnet-aspnetcore_9 = dotnetCorePackages.aspnetcore_9_0;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user