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-08-04 22:07:22 +00:00
|
|
|
version = "0.12.9";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "azdavis";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-PGB5sgYxiXYTj6O9SY/druDpNCf4O8HsivT8zhJM62M=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-08-04 22:07:22 +00:00
|
|
|
"char-name-0.1.0" = "sha256-mAzrBqaESZhLNozdgrGaRbOzwT+5j9nw9rRot9Xg1Ts=";
|
2023-07-15 17:15:38 +00:00
|
|
|
"sml-libs-0.1.0" = "sha256-q3n4UfDcpDaN8v9UewAz2G26NeDDsZFuczS7N6nkl5Q=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
|
|
|
};
|
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-08-04 22:07:22 +00:00
|
|
|
changelog = "https://github.com/azdavis/millet/blob/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
|
|
|
};
|
|
|
|
}
|