cue: 0.10.1 -> 0.11.0

This commit is contained in:
Aaron Jheng 2024-11-20 10:17:19 +08:00
parent bbeed35f79
commit f995dcd4d7
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3

View File

@ -2,6 +2,7 @@
buildGoModule,
fetchFromGitHub,
lib,
stdenv,
installShellFiles,
testers,
cue,
@ -10,16 +11,16 @@
buildGoModule rec {
pname = "cue";
version = "0.10.1";
version = "0.11.0";
src = fetchFromGitHub {
owner = "cue-lang";
repo = "cue";
rev = "v${version}";
hash = "sha256-CwPD+JUoKcs0HqWuZYH2c8AdwK6X0SS3aNGpkcPZ4C4=";
hash = "sha256-OneL29/d+OtOgcbCzl7B+sVsxF/gN2jA/36HthYXiQ0=";
};
vendorHash = "sha256-sLTpra7JwgF4l1UCrUtzQA4xrP4OqxBcZ1qEssBdFtk=";
vendorHash = "sha256-jl8TR1kxame30l7DkfOEioWA9wK/ACTNofiTi++vjuI=";
subPackages = [ "cmd/*" ];
@ -31,7 +32,7 @@ buildGoModule rec {
"-X cuelang.org/go/cmd/cue/cmd.version=v${version}"
];
postInstall = ''
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd cue \
--bash <($out/bin/cue completion bash) \
--fish <($out/bin/cue completion fish) \
@ -50,11 +51,11 @@ buildGoModule rec {
};
};
meta = with lib; {
meta = {
description = "Data constraint language which aims to simplify tasks involving defining and using data";
homepage = "https://cuelang.org/";
license = licenses.asl20;
maintainers = with maintainers; [ aaronjheng ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ aaronjheng ];
mainProgram = "cue";
};
}