nixpkgs/pkgs/development/tools/millet/default.nix

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

33 lines
856 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";
2022-11-18 04:20:00 +00:00
version = "0.6.0";
2022-06-25 04:20:00 +00:00
src = fetchFromGitHub {
owner = "azdavis";
repo = pname;
rev = "v${version}";
2022-11-18 04:20:00 +00:00
hash = "sha256-tP1ccUtHfj+JPUYGo+QFYjbz56uNl3p53QNeE/xaCt4=";
2022-06-25 04:20:00 +00:00
};
2022-11-18 04:20:00 +00:00
cargoHash = "sha256-umOlvHDA8AtoAeB1i8nNgbjvzTmzwZfdjF+TCTKzqAU=";
2022-09-24 03:37:49 +00:00
postPatch = ''
rm .cargo/config.toml
'';
2022-06-25 04:20:00 +00:00
cargoBuildFlags = [ "--package" "lang-srv" ];
2022-09-24 03:37:49 +00:00
cargoTestFlags = [ "--package" "lang-srv" ];
2022-06-25 04:20:00 +00:00
meta = with lib; {
description = "A language server for Standard ML";
homepage = "https://github.com/azdavis/millet";
2022-07-01 04:20:00 +00:00
changelog = "https://github.com/azdavis/millet/raw/v${version}/docs/changelog.md";
2022-09-03 04:20:00 +00:00
license = [ licenses.mit /* or */ licenses.asl20 ];
2022-06-25 04:20:00 +00:00
maintainers = with maintainers; [ marsam ];
2022-09-29 04:20:00 +00:00
mainProgram = "lang-srv";
2022-06-25 04:20:00 +00:00
};
}