nixpkgs/pkgs/by-name/mi/millet/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1004 B
Nix
Raw Normal View History

2022-07-22 04:20:00 +00:00
{ lib, rustPlatform, fetchFromGitHub }:
2022-06-25 04:20:00 +00:00
rustPlatform.buildRustPackage rec {
pname = "millet";
version = "0.14.3";
2022-06-25 04:20:00 +00:00
src = fetchFromGitHub {
owner = "azdavis";
repo = pname;
rev = "v${version}";
hash = "sha256-V1FToLhBzeZd3ve+eKAHniHN6oveEg0FBHnkSZPxBqo=";
2022-06-25 04:20:00 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"chain-map-0.1.0" = "sha256-nds+lPGCbxw3GqrgfmTbKnPkiV3F6f5A2xr82qV33iI=";
"sml-libs-0.1.0" = "sha256-zQrhH24XlA9SeQ+sVzaVwJwrm80TRIjFq99Vay7QEN8=";
};
};
2022-09-24 03:37:49 +00:00
postPatch = ''
rm .cargo/config.toml
'';
2022-06-25 04:20:00 +00:00
2023-01-03 04:20:00 +00:00
cargoBuildFlags = [ "--package" "millet-ls" ];
2022-06-25 04:20:00 +00:00
2023-01-03 04:20:00 +00:00
cargoTestFlags = [ "--package" "millet-ls" ];
2022-09-24 03:37:49 +00:00
2022-06-25 04:20:00 +00:00
meta = with lib; {
description = "Language server for Standard ML";
homepage = "https://github.com/azdavis/millet";
changelog = "https://github.com/azdavis/millet/blob/v${version}/docs/CHANGELOG.md";
2022-09-03 04:20:00 +00:00
license = [ licenses.mit /* or */ licenses.asl20 ];
maintainers = [ ];
2023-01-03 04:20:00 +00:00
mainProgram = "millet-ls";
2022-06-25 04:20:00 +00:00
};
}