41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{
|
|||
lib,
|
|||
fetchFromGitHub,
|
|||
rustPlatform,
|
|||
}:
|
|||
|
|||
rustPlatform.buildRustPackage rec {
|
|||
pname = "wgsl-analyzer";
|
|||
version = "0.8.1";
|
|||
|
|||
src = fetchFromGitHub {
|
|||
owner = "wgsl-analyzer";
|
|||
repo = "wgsl-analyzer";
|
|||
rev = "refs/tags/v${version}";
|
|||
hash = "sha256-bhosTihbW89vkqp1ua0C1HGLJJdCNfRde98z4+IjkOc=";
|
|||
};
|
|||
|
|||
useFetchCargoVendor = true;
|
|||
cargoHash = "sha256-+SeVxobUh2o2xNVBgXf1AgGI6hpNkoDNzXcKfabKEVc=";
|
|||
|
|||
checkFlags = [
|
|||
# Imports failures
|
|||
"--skip=tests::parse_import"
|
|||
"--skip=tests::parse_import_colon"
|
|||
"--skip=tests::parse_string_import"
|
|||
"--skip=tests::struct_recover_3"
|
|||
];
|
|||
|
|||
meta = {
|
|||
description = "Language server implementation for the WGSL shading language";
|
|||
homepage = "https://github.com/wgsl-analyzer/wgsl-analyzer";
|
|||
changelog = "https://github.com/wgsl-analyzer/wgsl-analyzer/releases/tag/v${version}";
|
|||
license = with lib.licenses; [
|
|||
asl20
|
|||
mit
|
|||
];
|
|||
maintainers = with lib.maintainers; [ genga898 ];
|
|||
mainProgram = "wgsl-analyzer";
|
|||
};
|
|||
}
|