cue: ensure passthru attrs use final overriden package

This commit is contained in:
éclairevoyant
2026-05-07 02:44:56 -04:00
parent bbd7b686c0
commit 5902512fe6
+13 -9
View File
@@ -38,17 +38,21 @@ buildGoModule (finalAttrs: {
--zsh <($out/bin/cue completion zsh)
'';
passthru = {
writeCueValidator = callPackage ./validator.nix { };
tests = {
test-001-all-good = callPackage ./tests/001-all-good.nix { };
version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "cue version";
version = "v${finalAttrs.version}";
passthru =
let
cue = finalAttrs.finalPackage;
in
{
writeCueValidator = callPackage ./validator.nix { inherit cue; };
tests = {
test-001-all-good = callPackage ./tests/001-all-good.nix { inherit cue; };
version = testers.testVersion {
package = cue;
command = "cue version";
version = "v${finalAttrs.version}";
};
};
};
};
meta = {
description = "Data constraint language which aims to simplify tasks involving defining and using data";