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

@ -54,7 +54,6 @@
btop.enable = true; btop.enable = true;
# OCaml fails to build on aarch64-linux
git.patdiff.enable = lib.mkForce false; git.patdiff.enable = lib.mkForce false;
}; };

View file

@ -1,12 +1,22 @@
{ {
lib, lib,
config, config,
pkgs,
... ...
}: { }: {
# git plugins # git plugins
programs.git = { programs.git = {
lfs.enable = true; 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)
];
}; };
# 懶惰鬼賴皮 # 懶惰鬼賴皮