mirror of
https://github.com/anotherhadi/awesome-wallpapers.git
synced 2026-10-05 18:28:25 +02:00
Full rewrite
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{
|
||||
pkgs,
|
||||
gitHooksLib,
|
||||
}: let
|
||||
hooks = gitHooksLib.run {
|
||||
src = ./.;
|
||||
hooks = {
|
||||
check-filename-format = {
|
||||
enable = true;
|
||||
name = "check-filename-format";
|
||||
entry = "bash .github/scripts/check-filename-format.sh";
|
||||
language = "system";
|
||||
files = "(wallpapers/)";
|
||||
pass_filenames = false;
|
||||
};
|
||||
convert-to-png = {
|
||||
enable = true;
|
||||
name = "convert-to-png";
|
||||
entry = "bash .github/scripts/convert-to-png.sh";
|
||||
language = "system";
|
||||
files = "(wallpapers/)";
|
||||
pass_filenames = false;
|
||||
};
|
||||
create-markdowns = {
|
||||
enable = true;
|
||||
name = "create-markdowns";
|
||||
entry = "bash .github/scripts/create-markdowns.sh";
|
||||
language = "system";
|
||||
files = "(wallpapers/)";
|
||||
pass_filenames = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = hooks.enabledPackages ++ (with pkgs; [imagemagick oxipng gifsicle]);
|
||||
shellHook = hooks.shellHook;
|
||||
}
|
||||
Reference in New Issue
Block a user