diff --git a/pkgs/development/tools/cue/default.nix b/pkgs/development/tools/cue/default.nix index fd82fc9df869..6f86bd745a24 100644 --- a/pkgs/development/tools/cue/default.nix +++ b/pkgs/development/tools/cue/default.nix @@ -27,21 +27,16 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X cuelang.org/go/cmd/cue/cmd.version=${version}" ]; postInstall = '' - # Completions installShellCompletion --cmd cue \ --bash <($out/bin/cue completion bash) \ --fish <($out/bin/cue completion fish) \ --zsh <($out/bin/cue completion zsh) ''; - doInstallCheck = true; - installCheckPhase = '' - $out/bin/cue eval - <<<'a: "all good"' > /dev/null - ''; - passthru = { writeCueValidator = callPackage ./validator.nix { }; tests = { + test-001-all-good = callPackage ./tests/001-all-good.nix { }; version = testers.testVersion { package = cue; command = "cue version"; diff --git a/pkgs/development/tools/cue/tests/001-all-good.nix b/pkgs/development/tools/cue/tests/001-all-good.nix new file mode 100644 index 000000000000..d9919cd7fee4 --- /dev/null +++ b/pkgs/development/tools/cue/tests/001-all-good.nix @@ -0,0 +1,11 @@ +{ lib +, cue +, runCommand +}: + +runCommand "cue-test-001-all-good-${cue.version}" { + nativeBuildInputs = [ cue ]; + meta.timeout = 10; +} '' + cue eval - <<<'a: "all good"' > $out + ''