1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/by-name/gl/glas/package.nix

37 lines
816 B
Nix
Raw Normal View History

2024-03-23 09:33:11 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "glas";
2024-04-04 08:35:53 +01:00
version = "0.2.3";
2024-03-23 09:33:11 +00:00
src = fetchFromGitHub {
owner = "maurobalbi";
repo = "glas";
rev = "v${version}";
2024-04-04 08:35:53 +01:00
sha256 = "sha256-jMpFxzosaCedwsJ8URlR3Gd/mnlgSBEfA3oIymmEPFU=";
2024-03-23 09:33:11 +00:00
};
2024-04-04 08:35:53 +01:00
cargoHash = "sha256-zESRtefoObpUsu4RfTsqJAyBNylouXffpNK3W/X+w9M=";
2024-03-23 09:33:11 +00:00
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";
2024-03-16 08:01:06 +00:00
maintainers = with lib.maintainers; [ bhankas ];
2024-03-23 09:33:11 +00:00
};
}