2022-08-12 12:06:08 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "millet";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "0.8.3";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "azdavis";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-b5zb0sDya/58kEEgqWqu4u6Xo61sq8Le0F3Z1Q3dBdk=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
cargoHash = "sha256-5uURD+c5OR2ACS2a3OYlPX/EpJ966+m97MDKyw3snjA=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm .cargo/config.toml
|
|
|
|
'';
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
cargoBuildFlags = [ "--package" "millet-ls" ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
cargoTestFlags = [ "--package" "millet-ls" ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A language server for Standard ML";
|
|
|
|
homepage = "https://github.com/azdavis/millet";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/azdavis/millet/raw/v${version}/docs/CHANGELOG.md";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = [ licenses.mit /* or */ licenses.asl20 ];
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2023-01-11 07:51:40 +00:00
|
|
|
mainProgram = "millet-ls";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
}
|