c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ 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";
|
|
};
|
|
}
|