depot/third_party/nixpkgs/pkgs/development/tools/language-servers/crystalline/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

49 lines
1 KiB
Nix

{ lib
, crystal
, fetchFromGitHub
, llvmPackages
, openssl
, makeWrapper
}:
let
version = "0.13.1";
in
crystal.buildCrystalPackage {
pname = "crystalline";
inherit version;
src = fetchFromGitHub {
owner = "elbywan";
repo = "crystalline";
rev = "v${version}";
hash = "sha256-Exv83jmSyhJv90Oo4oApZwNgNjy7tOKxLNh7yJIbfws=";
};
format = "crystal";
shardsFile = ./shards.nix;
nativeBuildInputs = [ llvmPackages.llvm openssl makeWrapper ];
doCheck = false;
doInstallCheck = false;
crystalBinaries.crystalline = {
src = "src/crystalline.cr";
options = [ "--release" "--no-debug" "--progress" "-Dpreview_mt" ];
};
postInstall = ''
wrapProgram "$out/bin/crystalline" --prefix PATH : '${
lib.makeBinPath [llvmPackages.llvm.dev]
}'
'';
meta = with lib; {
description = "Language Server Protocol implementation for Crystal";
mainProgram = "crystalline";
homepage = "https://github.com/elbywan/crystalline";
license = licenses.mit;
maintainers = with maintainers; [ donovanglover ];
};
}