nixpkgs/pkgs/development/tools/millet/default.nix
2022-07-19 04:20:00 +00:00

31 lines
914 B
Nix

{ lib, rustPlatform, fetchFromGitHub, rustfmt }:
rustPlatform.buildRustPackage rec {
pname = "millet";
version = "0.2.5";
src = fetchFromGitHub {
owner = "azdavis";
repo = pname;
rev = "v${version}";
sha256 = "sha256-HnVvq6Tb0yDvoa0KxZHZG0Tm0CWYWsn9unj0v0zYuTw=";
};
cargoSha256 = "sha256-cbp4eAcqKuUKKqmlS2Azo5NRHDy+F4LNwcrwbFj+Z5g=";
nativeBuildInputs = [
# Required for `syntax-gen` crate https://github.com/azdavis/language-util/blob/8ec2dc509c88951102ad3e751820443059a363af/crates/syntax-gen/src/util.rs#L37
rustfmt
];
cargoBuildFlags = [ "--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;
maintainers = with maintainers; [ marsam ];
};
}