mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
37 lines
813 B
Nix
37 lines
813 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 = "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 ];
|
|
};
|
|
}
|