From 94203f337954891a4b1ec0aa4dab8a7d722d00a3 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Thu, 4 Apr 2024 08:53:47 -0300 Subject: [PATCH] dotnet: add version test to non-sdk packages --- pkgs/development/compilers/dotnet/common.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/dotnet/common.nix b/pkgs/development/compilers/dotnet/common.nix index e88ddfb3e37f..e8c726f93bd7 100644 --- a/pkgs/development/compilers/dotnet/common.nix +++ b/pkgs/development/compilers/dotnet/common.nix @@ -38,7 +38,6 @@ --fish ${./completions/dotnet.fish} ''; -} // lib.optionalAttrs (type == "sdk") { passthru = { tests = let mkDotnetTest = @@ -79,10 +78,13 @@ ''; in { - version = testers.testVersion { + version = testers.testVersion ({ package = finalAttrs.finalPackage; - }; - + } // lib.optionalAttrs (type != "sdk") { + command = "dotnet --info"; + }); + } + // lib.optionalAttrs (type == "sdk") { console = mkDotnetTest { name = "console"; template = "console";