about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorKonrad Malik <konrad.malik@gmail.com>2024-01-23 10:18:45 +0100
committerKonrad Malik <konrad.malik@gmail.com>2024-01-23 10:40:35 +0100
commit5db0147c5f6f010119f1992cb1048e048ef0454a (patch)
treee498ac78615f0a015efff6835a826b74697108ee /pkgs/development/tools
parent1f04b1ac8da085c6e81f42dcd245df8fdd2360fb (diff)
downloadnixlib-5db0147c5f6f010119f1992cb1048e048ef0454a.tar
nixlib-5db0147c5f6f010119f1992cb1048e048ef0454a.tar.gz
nixlib-5db0147c5f6f010119f1992cb1048e048ef0454a.tar.bz2
nixlib-5db0147c5f6f010119f1992cb1048e048ef0454a.tar.lz
nixlib-5db0147c5f6f010119f1992cb1048e048ef0454a.tar.xz
nixlib-5db0147c5f6f010119f1992cb1048e048ef0454a.tar.zst
nixlib-5db0147c5f6f010119f1992cb1048e048ef0454a.zip
earthly: and testVersion
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/earthly/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/tools/earthly/default.nix b/pkgs/development/tools/earthly/default.nix
index fee62a7fd981..62c18f959670 100644
--- a/pkgs/development/tools/earthly/default.nix
+++ b/pkgs/development/tools/earthly/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub, stdenv }:
+{ lib, buildGoModule, fetchFromGitHub, stdenv, testers, earthly }:
 
 buildGoModule rec {
   pname = "earthly";
@@ -39,6 +39,13 @@ buildGoModule rec {
     mv $out/bin/debugger $out/bin/earthly-debugger
   '';
 
+  passthru = {
+    tests.version = testers.testVersion {
+      package = earthly;
+      version = "v${version}";
+    };
+  };
+
   meta = with lib; {
     description = "Build automation for the container era";
     homepage = "https://earthly.dev/";