7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
38 lines
897 B
Nix
38 lines
897 B
Nix
{
|
|
rustPlatform,
|
|
lib,
|
|
fetchFromGitHub,
|
|
darwin,
|
|
openssl,
|
|
pkg-config,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gitlab-ci-ls";
|
|
version = "0.21.2";
|
|
src = fetchFromGitHub {
|
|
owner = "alesbrelih";
|
|
repo = "gitlab-ci-ls";
|
|
rev = "${version}";
|
|
hash = "sha256-wkL6ko43oWrpyscEpCMuoFamDMJk9+xI3qYOs+DgI8g=";
|
|
};
|
|
|
|
cargoHash = "sha256-H/p29QbCaZRa81g+5eUsG47tUJPVgB1J9zZYY5/n5Vk=";
|
|
|
|
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";
|
|
};
|
|
}
|