blob: cb84a7e01e521f2c91be735a25c6a15d50853637 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "millet";
version = "0.9.4";
src = fetchFromGitHub {
owner = "azdavis";
repo = pname;
rev = "v${version}";
hash = "sha256-wupTEZGsfqH7Ekqr5eiQ5Ne1cD8Fw3cpaZJVsOlXJyw=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"char-name-0.1.0" = "sha256-IisHUxD6YQIb7uUZ1kYd3hnH1v87OhMBYDqJpBGmwfQ=";
"sml-libs-0.1.0" = "sha256-0gRiXJAGddrrbgI3AhlWqVKipNZI0OxMTrkWdcSbG7A=";
};
};
postPatch = ''
rm .cargo/config.toml
'';
cargoBuildFlags = [ "--package" "millet-ls" ];
cargoTestFlags = [ "--package" "millet-ls" ];
meta = with lib; {
description = "A language server for Standard ML";
homepage = "https://github.com/azdavis/millet";
changelog = "https://github.com/azdavis/millet/raw/v${version}/docs/CHANGELOG.md";
license = [ licenses.mit /* or */ licenses.asl20 ];
maintainers = with maintainers; [ marsam ];
mainProgram = "millet-ls";
};
}
|