cue: internalize writeCueValidator via passthru

A small step to by-name migration.
This commit is contained in:
Anderson Torres 2024-03-29 15:03:54 -03:00
parent ab279344c5
commit 90d9ce0e26
2 changed files with 10 additions and 4 deletions

View File

@ -4,6 +4,7 @@
, installShellFiles
, testers
, cue
, callPackage
}:
buildGoModule rec {
@ -38,9 +39,14 @@ buildGoModule rec {
$out/bin/cue eval - <<<'a: "all good"' > /dev/null
'';
passthru.tests.version = testers.testVersion {
package = cue;
command = "cue version";
passthru = {
writeCueValidator = callPackage ./validator.nix { };
tests = {
version = testers.testVersion {
package = cue;
command = "cue version";
};
};
};
meta = with lib; {

View File

@ -3680,7 +3680,7 @@ with pkgs;
cue = callPackage ../development/tools/cue { };
writeCueValidator = callPackage ../development/tools/cue/validator.nix { };
inherit (cue) writeCueValidator;
cuelsp = callPackage ../development/tools/cuelsp { };