2024-09-06 12:51:07 +00:00
|
|
|
{
|
|
|
|
rustPlatform,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
darwin,
|
|
|
|
openssl,
|
|
|
|
pkg-config,
|
|
|
|
stdenv,
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitlab-ci-ls";
|
2024-10-01 10:03:04 +00:00
|
|
|
version = "0.21.3";
|
2024-09-06 12:51:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alesbrelih";
|
|
|
|
repo = "gitlab-ci-ls";
|
|
|
|
rev = "${version}";
|
2024-10-01 10:03:04 +00:00
|
|
|
hash = "sha256-3PqGnknP5ilwPCDsD8GwIEamZC24lEnuQhipTo8RDI0=";
|
2024-09-06 12:51:07 +00:00
|
|
|
};
|
|
|
|
|
2024-10-01 10:03:04 +00:00
|
|
|
cargoHash = "sha256-c31madEElZpHbzyKHqUDyPW/maVrkNKlldX24Y3iFGQ=";
|
2024-09-06 12:51:07 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs =
|
|
|
|
[ openssl ]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/alesbrelih/gitlab-ci-ls";
|
|
|
|
description = "GitLab CI Language Server (gitlab-ci-ls)";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
mainProgram = "gitlab-ci-ls";
|
|
|
|
};
|
|
|
|
}
|