1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-04 17:09:47 +01:00
home-manager/tests/modules/programs/silicon/syntaxes.nix
2024-05-10 12:55:29 +02:00

30 lines
730 B
Nix

{ pkgs, ... }:
let syntaxName = "gleam";
in {
programs.silicon = {
enable = true;
syntaxes = {
${syntaxName} = {
src = pkgs.fetchFromGitHub {
owner = "molnarmark";
repo = "sublime-gleam";
rev = "2e761cdb1a87539d827987f997a20a35efd68aa9";
hash = "sha256-Zj2DKTcO1t9g18qsNKtpHKElbRSc9nBRE2QBzRn9+qs=";
};
file = "syntax/gleam.sublime-syntax";
};
};
};
test.stubs.silicon = { };
nmt.script = let
syntaxFile =
"home-files/.config/silicon/syntaxes/${syntaxName}.sublime-syntax";
cacheFile = "home-files/.cache/silicon/syntaxes.bin";
in ''
assertFileExists "${syntaxFile}"
assertFileExists "${cacheFile}"
'';
}