5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ lib
|
|
, crystal
|
|
, fetchFromGitHub
|
|
, llvmPackages
|
|
, openssl
|
|
, makeWrapper
|
|
}:
|
|
|
|
let
|
|
version = "0.10.0";
|
|
in
|
|
crystal.buildCrystalPackage {
|
|
pname = "crystalline";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elbywan";
|
|
repo = "crystalline";
|
|
rev = "v${version}";
|
|
hash = "sha256-g4k/vP7yYbTAy2bTAfr6HQhkskWfI6Zv2lxP+AZf6yw=";
|
|
};
|
|
|
|
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 = "A Language Server Protocol implementation for Crystal";
|
|
homepage = "https://github.com/elbywan/crystalline";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ donovanglover ];
|
|
};
|
|
}
|