{ lib, rustPlatform, fetchFromGitHub }: rustPlatform.buildRustPackage rec { pname = "millet"; version = "0.5.12"; src = fetchFromGitHub { owner = "azdavis"; repo = pname; rev = "v${version}"; sha256 = "sha256-COVWn8RTUQSCHkjUgD9I+lZ4u/M7wqAV6tnDW7HIytY="; }; cargoSha256 = "sha256-/7I1RdDo2o2uMUVEMjSCltmU8eW39cCgpzHztePE3Kw="; postPatch = '' rm .cargo/config.toml ''; cargoBuildFlags = [ "--package" "lang-srv" ]; cargoTestFlags = [ "--package" "lang-srv" ]; 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 = "lang-srv"; }; }