about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2024-01-23 22:18:16 -0500
committerGitHub <noreply@github.com>2024-01-23 22:18:16 -0500
commit802530789d36e4e5a5129513d416f9e1e739a9e8 (patch)
tree194edb68ce64ad755a73409628fb7b229cfcaf66 /pkgs/development/tools
parentbc37300fa79d62504195d0a9591a38260168ea87 (diff)
parent5db0147c5f6f010119f1992cb1048e048ef0454a (diff)
downloadnixlib-802530789d36e4e5a5129513d416f9e1e739a9e8.tar
nixlib-802530789d36e4e5a5129513d416f9e1e739a9e8.tar.gz
nixlib-802530789d36e4e5a5129513d416f9e1e739a9e8.tar.bz2
nixlib-802530789d36e4e5a5129513d416f9e1e739a9e8.tar.lz
nixlib-802530789d36e4e5a5129513d416f9e1e739a9e8.tar.xz
nixlib-802530789d36e4e5a5129513d416f9e1e739a9e8.tar.zst
nixlib-802530789d36e4e5a5129513d416f9e1e739a9e8.zip
Merge pull request #283168 from konradmalik/earthly
earthly: add 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 ad7f9d530132..501965b18a12 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/";