I have this module enabled:
{
nix.settings = {
# Easier diagnose of non-determinism
diff-hook = pkgs.writeShellScript "nix-diff-hook" ''
echo "Checking derivation $3"
diffoscope "$1" "$2" || true
'';
run-diff-hook = true;
};
environment.systemPackages = with pkgs; [
diffoscope
];
}
However, when rebuilding a non-reproducible derivation, I see no diff. If I run the nix-diff-hook script passing arguments 1, 2 and 3 as explained in the docs (Verifying Build Reproducibility - Nix 2.28.1 Reference Manual), it works.
Could anybody help me see what’s wrong with that config or why I see no diff please?