@cryptotaxi247 / infra / commits / 57dd1405

build: drop diffoscope

Not really used in and by the current build infra team.

Martin Weinelt committed Jan 30, 2026 at 01:20 UTC 57dd1405bde6f38b0d60b2aaf2df3f296f2f030e
2 files changed -35
build/common.nix
-1
@@ -6,7 +6,6 @@
6
7 {
8 imports = [
9 - ./diffoscope.nix
9 ../modules/common.nix
10 ../modules/nftables.nix
11 ../modules/prometheus
build/diffoscope.nix deleted
-34
@@ -1,34 +0,0 @@
1 -{
2 - pkgs,
3 - ...
4 -}:
5 -
6 -let
7 -
8 - diffoscopeWrapper = pkgs.writeScript "diffoscope-wrapper" ''
9 - #! ${pkgs.stdenv.shell}
10 - exec >&2
11 - echo ""
12 - echo "non-determinism detected in $2; diff with previous round follows:"
13 - echo ""
14 - time ${pkgs.util-linux}/bin/runuser -u diffoscope -- ${pkgs.diffoscope}/bin/diffoscope "$1" "$2"
15 - exit 0
16 - '';
17 -
18 -in
19 -
20 -{
21 -
22 - nix.extraOptions = ''
23 - diff-hook = ${diffoscopeWrapper}
24 - '';
25 -
26 - # Don't run diffoscope as root.
27 - users.extraUsers.diffoscope = {
28 - description = "Diffoscope containment user";
29 - group = "diffoscope";
30 - isSystemUser = true;
31 - };
32 - users.groups.diffoscope = { };
33 -
34 -}