87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "millet";
|
|
version = "0.8.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "azdavis";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-DdzBIlkwYo/E+S/KTXUzc3Fp1DQDP8qL8+sG/67XQe4=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"char-name-0.1.0" = "sha256-8biNETzXhR3GE5Ywrbcd4199h3ipwwZbtpZOQGOYA1g=";
|
|
"rowan-0.15.10" = "sha256-yOaUq2tQEiNgQB7qB8fFzfnwUWagu72MIPHmaTX0B0Y=";
|
|
"sml-libs-0.1.0" = "sha256-6jbRMqlW5sL0x0i4qatduXvLHhrkUE7gsSwC6JYwiHQ=";
|
|
};
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|