dotnet: add buildDotnetModule tests to sdk passthru.tests
This commit is contained in:
parent
66023e4de2
commit
cf8caed169
@ -18,6 +18,7 @@
|
|||||||
replaceVars,
|
replaceVars,
|
||||||
nugetPackageHook,
|
nugetPackageHook,
|
||||||
xmlstarlet,
|
xmlstarlet,
|
||||||
|
pkgs,
|
||||||
}:
|
}:
|
||||||
type: unwrapped:
|
type: unwrapped:
|
||||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
@ -280,6 +281,16 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs (type == "sdk") ({
|
// lib.optionalAttrs (type == "sdk") ({
|
||||||
|
buildDotnetModule =
|
||||||
|
(pkgs.appendOverlays [
|
||||||
|
(self: super: {
|
||||||
|
dotnet-sdk = finalAttrs.finalPackage;
|
||||||
|
dotnet-runtime = finalAttrs.finalPackage.runtime;
|
||||||
|
})
|
||||||
|
]).callPackage
|
||||||
|
../../../test/dotnet/default.nix
|
||||||
|
{ };
|
||||||
|
|
||||||
console = lib.recurseIntoAttrs {
|
console = lib.recurseIntoAttrs {
|
||||||
# yes, older SDKs omit the comma
|
# yes, older SDKs omit the comma
|
||||||
cs = mkConsoleTests "C#" "cs" "Hello,?\\ World!";
|
cs = mkConsoleTests "C#" "cs" "Hello,?\\ World!";
|
||||||
|
|||||||
@ -26,7 +26,7 @@ let
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
runtimeVersion = lib.getVersion dotnet-runtime;
|
runtimeVersion = lib.head (lib.splitString "-" (lib.getVersion dotnet-runtime));
|
||||||
runtimeVersionFile = builtins.toFile "dotnet-version.txt" runtimeVersion;
|
runtimeVersionFile = builtins.toFile "dotnet-version.txt" runtimeVersion;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user