cue: ensure passthru attrs use final overriden package
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user