mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
33 lines
857 B
Nix
33 lines
857 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "millet";
|
|
version = "0.5.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "azdavis";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-YdCdB72f7IQsi8WKVmGlqAybcewisK1J7jfR5Irp6VE=";
|
|
};
|
|
|
|
cargoHash = "sha256-2WEptDHo2t6p8nzd00fPu/XQqq0gUlLAyuSraMfbHL0=";
|
|
|
|
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";
|
|
};
|
|
}
|