From 5db0147c5f6f010119f1992cb1048e048ef0454a Mon Sep 17 00:00:00 2001 From: Konrad Malik Date: Tue, 23 Jan 2024 10:18:45 +0100 Subject: [PATCH] earthly: and testVersion --- pkgs/development/tools/earthly/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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/";