From 39adbc54560e1f0072fc84d5228a5b6063ba6300 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 29 Dec 2023 19:12:46 +0000 Subject: [PATCH] devpod: fix `tests` eval Without the change `tests` eval failed as: $ nix build --no-link -f. devpod.tests error: error: value is a string while a set was expected The failure reason is in `package` parameter. It should be a derivation, not a package name. While at it fixed the command to extract version. --- pkgs/development/tools/devpod/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/devpod/default.nix b/pkgs/development/tools/devpod/default.nix index 6ddb483e03c0..e4991f04e8ea 100644 --- a/pkgs/development/tools/devpod/default.nix +++ b/pkgs/development/tools/devpod/default.nix @@ -63,7 +63,8 @@ rec { ''; passthru.tests.version = testers.testVersion { - package = pname; + package = devpod; + command = "devpod version"; version = "v${version}"; }; };