16 src = fetchFromGitHub {
20 hash = "sha256-OneL29/d+OtOgcbCzl7B+sVsxF/gN2jA/36HthYXiQ0=";
23 vendorHash = "sha256-jl8TR1kxame30l7DkfOEioWA9wK/ACTNofiTi++vjuI=";
25 subPackages = [ "cmd/*" ];
27 nativeBuildInputs = [ installShellFiles ];
32 "-X cuelang.org/go/cmd/cue/cmd.version=v${version}"
35 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
36 installShellCompletion --cmd cue \
37 --bash <($out/bin/cue completion bash) \
38 --fish <($out/bin/cue completion fish) \
39 --zsh <($out/bin/cue completion zsh)
43 writeCueValidator = callPackage ./validator.nix { };
45 test-001-all-good = callPackage ./tests/001-all-good.nix { };
46 version = testers.testVersion {
48 command = "cue version";
49 version = "v${version}";
55 description = "Data constraint language which aims to simplify tasks involving defining and using data";
56 homepage = "https://cuelang.org/";
57 license = lib.licenses.asl20;
58 maintainers = with lib.maintainers; [ aaronjheng ];