14 src = fetchFromGitHub {
18 hash = "sha256-CwPD+JUoKcs0HqWuZYH2c8AdwK6X0SS3aNGpkcPZ4C4=";
21 vendorHash = "sha256-sLTpra7JwgF4l1UCrUtzQA4xrP4OqxBcZ1qEssBdFtk=";
23 subPackages = [ "cmd/*" ];
25 nativeBuildInputs = [ installShellFiles ];
30 "-X cuelang.org/go/cmd/cue/cmd.version=v${version}"
34 installShellCompletion --cmd cue \
35 --bash <($out/bin/cue completion bash) \
36 --fish <($out/bin/cue completion fish) \
37 --zsh <($out/bin/cue completion zsh)
41 writeCueValidator = callPackage ./validator.nix { };
43 test-001-all-good = callPackage ./tests/001-all-good.nix { };
44 version = testers.testVersion {
46 command = "cue version";
47 version = "v${version}";
53 description = "Data constraint language which aims to simplify tasks involving defining and using data";
54 homepage = "https://cuelang.org/";
55 license = licenses.asl20;
56 maintainers = with maintainers; [ aaronjheng ];