evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / mi / millet / package.nix
blob36e78863deb6c5eee4c41709a2e842a508db51ef
1 { lib, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
4   pname = "millet";
5   version = "0.14.3";
7   src = fetchFromGitHub {
8     owner = "azdavis";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-V1FToLhBzeZd3ve+eKAHniHN6oveEg0FBHnkSZPxBqo=";
12   };
14   cargoLock = {
15     lockFile = ./Cargo.lock;
16     outputHashes = {
17       "chain-map-0.1.0" = "sha256-nds+lPGCbxw3GqrgfmTbKnPkiV3F6f5A2xr82qV33iI=";
18       "sml-libs-0.1.0" = "sha256-zQrhH24XlA9SeQ+sVzaVwJwrm80TRIjFq99Vay7QEN8=";
19     };
20   };
22   postPatch = ''
23     rm .cargo/config.toml
24   '';
26   cargoBuildFlags = [ "--package" "millet-ls" ];
28   cargoTestFlags = [ "--package" "millet-ls" ];
30   meta = with lib; {
31     description = "Language server for Standard ML";
32     homepage = "https://github.com/azdavis/millet";
33     changelog = "https://github.com/azdavis/millet/blob/v${version}/docs/CHANGELOG.md";
34     license = [ licenses.mit /* or */ licenses.asl20 ];
35     maintainers = [ ];
36     mainProgram = "millet-ls";
37   };