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.
This commit is contained in:
Sergei Trofimovich 2023-12-29 19:12:46 +00:00
parent 01962add7e
commit 39adbc5456

View file

@ -63,7 +63,8 @@ rec {
'';
passthru.tests.version = testers.testVersion {
package = pname;
package = devpod;
command = "devpod version";
version = "v${version}";
};
};