Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
vale,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "vale-ls";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "errata-ai";
|
|
repo = "vale-ls";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-lRRKRQTxgXF4E+XghJ5AOp+mtWtiCT13EcsPVydn4Uo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
rustPlatform.bindgenHook
|
|
pkg-config
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
checkFlags = [
|
|
# The following tests are reaching to the network.
|
|
"--skip=vale::tests"
|
|
]
|
|
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
|
|
# This test does not account for the existence of aarch64-linux machines,
|
|
# despite upstream shipping artifacts for that architecture
|
|
"--skip=utils::tests::arch"
|
|
];
|
|
|
|
env.OPENSSL_NO_VENDOR = true;
|
|
|
|
cargoHash = "sha256-KPgi0wZh1+PTKUmvCkLGPf+DZW5Tt4dQVK/cdxjm/1A=";
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/vale-ls \
|
|
--suffix PATH : ${lib.makeBinPath [ vale ]}
|
|
'';
|
|
|
|
meta = {
|
|
description = "LSP implementation for the Vale command-line tool";
|
|
homepage = "https://github.com/errata-ai/vale-ls";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "vale-ls";
|
|
maintainers = with lib.maintainers; [
|
|
foo-dogsquared
|
|
jansol
|
|
];
|
|
};
|
|
})
|