nix-init: add passthru.tests.version

This commit is contained in:
Kenichi Kamiya 2024-11-19 00:11:54 +09:00
parent b128929035
commit 26cea2436d
No known key found for this signature in database
GPG Key ID: 9BE4016A38165CCB

View File

@ -16,6 +16,8 @@
spdx-license-list-data,
nix,
nurl,
testers,
nix-init,
}:
let
@ -92,6 +94,10 @@ rustPlatform.buildRustPackage rec {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
passthru.tests.version = testers.testVersion {
package = nix-init;
};
meta = with lib; {
description = "Command line tool to generate Nix packages from URLs";
mainProgram = "nix-init";