home: notify when patdiff is being enabled on aarch64-linux

This commit is contained in:
Primrose 2025-11-02 10:21:01 +08:00
parent fe93ed4584
commit ecb06aaa84
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 11 additions and 2 deletions

View file

@ -1,12 +1,22 @@
{
lib,
config,
pkgs,
...
}: {
# git plugins
programs.git = {
lfs.enable = true;
patdiff.enable = true;
patdiff.enable = lib.mkMerge [
# known to fail on aarch64-linux
(lib.mkIf (pkgs.system == "aarch64-linux") (
# TODO: investigate this
lib.warn "patdiff has been forcibly disabled because it has previously failed to build"
lib.mkForce
false
))
(lib.mkDefault true)
];
};
# 懶惰鬼賴皮