depot/third_party/nixpkgs/pkgs/by-name/gl/glas/package.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

36 lines
816 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "glas";
version = "0.2.3";
src = fetchFromGitHub {
owner = "maurobalbi";
repo = "glas";
rev = "v${version}";
sha256 = "sha256-jMpFxzosaCedwsJ8URlR3Gd/mnlgSBEfA3oIymmEPFU=";
};
cargoHash = "sha256-zESRtefoObpUsu4RfTsqJAyBNylouXffpNK3W/X+w9M=";
doInstallCheck = true;
postInstallCheck = ''
$out/bin/glas --help > /dev/null
'';
meta = {
description = "A language server for the Gleam programming language.";
homepage = "https://github.com/maurobalbi/glas";
changelog = "https://github.com/maurobalbi/glas/tag/v${version}";
license = with lib.licenses; [
asl20
mit
];
mainProgram = "glas";
maintainers = with lib.maintainers; [ bhankas ];
};
}