about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2023-09-19 13:32:08 +0200
committerAnthony Roussel <anthony@roussel.dev>2023-10-27 07:59:50 +0200
commit9fc549a6dfae8b8f11d201a77e0e19e8b1bc0786 (patch)
tree3685365688e72a245cbff7fee97069b42dde290b
parent7b553b67cf8146fc7518c4a3a02ab83fe8e8e79b (diff)
downloadnixlib-9fc549a6dfae8b8f11d201a77e0e19e8b1bc0786.tar
nixlib-9fc549a6dfae8b8f11d201a77e0e19e8b1bc0786.tar.gz
nixlib-9fc549a6dfae8b8f11d201a77e0e19e8b1bc0786.tar.bz2
nixlib-9fc549a6dfae8b8f11d201a77e0e19e8b1bc0786.tar.lz
nixlib-9fc549a6dfae8b8f11d201a77e0e19e8b1bc0786.tar.xz
nixlib-9fc549a6dfae8b8f11d201a77e0e19e8b1bc0786.tar.zst
nixlib-9fc549a6dfae8b8f11d201a77e0e19e8b1bc0786.zip
goss: add passthru.tests.goss and meta.mainProgram
-rw-r--r--pkgs/tools/misc/goss/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/tools/misc/goss/default.nix b/pkgs/tools/misc/goss/default.nix
index e0e3467c4042..e0a4369eb477 100644
--- a/pkgs/tools/misc/goss/default.nix
+++ b/pkgs/tools/misc/goss/default.nix
@@ -49,10 +49,13 @@ buildGoModule rec {
   '';
 
   passthru = {
-    tests.version = testers.testVersion {
-      command = "goss --version";
-      package = goss;
-      version = "v${version}";
+    tests = {
+      inherit (nixosTests) goss;
+      version = testers.testVersion {
+        command = "goss --version";
+        package = goss;
+        version = "v${version}";
+      };
     };
     updateScript = nix-update-script { };
   };
@@ -67,7 +70,8 @@ buildGoModule rec {
       Once the test suite is written they can be executed, waited-on, or served as a health endpoint.
     '';
     license = licenses.asl20;
-    platforms = platforms.linux ++ platforms.darwin;
+    mainProgram = "goss";
     maintainers = with maintainers; [ hyzual jk anthonyroussel ];
+    platforms = platforms.linux ++ platforms.darwin;
   };
 }