depot/third_party/nixpkgs/pkgs/by-name/gi/gitlab-ci-ls/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

38 lines
897 B
Nix

{
rustPlatform,
lib,
fetchFromGitHub,
darwin,
openssl,
pkg-config,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "gitlab-ci-ls";
version = "0.21.3";
src = fetchFromGitHub {
owner = "alesbrelih";
repo = "gitlab-ci-ls";
rev = "${version}";
hash = "sha256-3PqGnknP5ilwPCDsD8GwIEamZC24lEnuQhipTo8RDI0=";
};
cargoHash = "sha256-c31madEElZpHbzyKHqUDyPW/maVrkNKlldX24Y3iFGQ=";
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";
};
}