diff --git a/pkgs/by-name/cu/cue/package.nix b/pkgs/by-name/cu/cue/package.nix index 7e69d57af88f..1459b58af045 100644 --- a/pkgs/by-name/cu/cue/package.nix +++ b/pkgs/by-name/cu/cue/package.nix @@ -1,24 +1,26 @@ -{ buildGoModule -, fetchFromGitHub -, lib -, installShellFiles -, testers -, cue -, callPackage +{ + buildGoModule, + fetchFromGitHub, + lib, + stdenv, + installShellFiles, + testers, + cue, + callPackage, }: 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/*" ]; @@ -30,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) \ @@ -49,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"; }; }