veryl: 0.13.0 -> 0.13.1 (#348003)

This commit is contained in:
Peder Bergebakken Sundt 2024-10-18 18:56:49 +02:00 committed by GitHub
commit d03c3da42b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@
rustPlatform, rustPlatform,
fetchFromGitHub, fetchFromGitHub,
pkg-config, pkg-config,
installShellFiles,
dbus, dbus,
stdenv, stdenv,
darwin, darwin,
@ -10,20 +11,21 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "veryl"; pname = "veryl";
version = "0.13.0"; version = "0.13.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "veryl-lang"; owner = "veryl-lang";
repo = "veryl"; repo = "veryl";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-U4ikR2jRmHUwRycAL/t2XJtvHQniKu6skRKWn8XDIgM="; hash = "sha256-YcYP7JO27Fv/LTrxbQ0vNqwBE6anGjeTFS31MAp2ip4=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
cargoHash = "sha256-t2q3rbY84+0ayxt7a/TCD0exCm7KEs+8UbQjCtqZPoE="; cargoHash = "sha256-HvT56jBmFTWUdzHjyPVaJ3wuMD01omCFEIEJ53JrKY4=";
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
installShellFiles
]; ];
buildInputs = buildInputs =
@ -37,6 +39,13 @@ rustPlatform.buildRustPackage rec {
darwin.apple_sdk.frameworks.SystemConfiguration darwin.apple_sdk.frameworks.SystemConfiguration
]; ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd veryl \
--bash <($out/bin/veryl metadata --completion bash) \
--fish <($out/bin/veryl metadata --completion fish) \
--zsh <($out/bin/veryl metadata --completion zsh)
'';
checkFlags = [ checkFlags = [
# takes over an hour # takes over an hour
"--skip=tests::progress" "--skip=tests::progress"
@ -53,7 +62,6 @@ rustPlatform.buildRustPackage rec {
"--skip=analyzer::test_68_std" "--skip=analyzer::test_68_std"
"--skip=emitter::test_25_dependency" "--skip=emitter::test_25_dependency"
"--skip=emitter::test_68_std" "--skip=emitter::test_68_std"
]; ];
meta = { meta = {