{ rustPlatform, lib, fetchFromGitHub, darwin, openssl, pkg-config, stdenv, }: rustPlatform.buildRustPackage rec { pname = "gitlab-ci-ls"; version = "0.22.0"; src = fetchFromGitHub { owner = "alesbrelih"; repo = "gitlab-ci-ls"; rev = "${version}"; hash = "sha256-RXM581tW78YzH+NQhkpsbHz6m+PAF7NQ5p3TFugPo+M="; }; cargoHash = "sha256-PuNpkDjoJr1GttETWHA9X+LYNIJSgBXdZId5q2JSo6g="; 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"; }; }