Skip to content

Commit d448991

Browse files
committed
Revert single-output postgresql, use cache breaker v3
The single-output postgresql (685d555) broke the eval because downstream packages (haskell.nix libpq) depend on postgresql.lib and postgresql.dev outputs which don't exist with outputs=["out"]. Revert to the standard 5-output postgresql with all the existing fixes (jitSupport=false, perlSupport=false, fno-lto, etc) and add a cache breaker v3 to force new derivation hashes. This ensures the queue runner won't hit stale FailedPaths entries from previous postgresql-musl orphaned store path failures.
1 parent 685d555 commit d448991

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

flake.nix

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,19 +163,12 @@
163163
outputChecks = {};
164164
separateDebugInfo = false;
165165
disallowedReferences = [];
166-
# Merge all outputs into "out" to work around Determinate Nix
167-
# orphaned store path bug on macOS (APFS). Multi-output derivations
168-
# fail to register atomically in the Nix DB — the build completes
169-
# but outputs remain orphaned (exist on disk, not valid in DB).
170-
# sync-before-registering = true did not fix this. Single-output
171-
# avoids the multi-output registration path entirely. Consumers
172-
# (haskell.nix libpq) only need lib/ and bin/pg_config anyway.
173-
outputs = [ "out" ];
174-
# Replace the upstream postInstall which splits outputs and
175-
# removes pg_config from $out. We need everything in $out.
176-
postInstall = ''
177-
make -C src/common pg_config.env
178-
install -D src/common/pg_config.env "$out/nix-support/pg_config.env"
166+
# Bump cache breaker v3: pre-built GCC on hydra with sandbox
167+
# /usr/include, cleared all FailedPaths. Orphaned paths cleaned
168+
# on all builders 2026-02-19.
169+
preBuild = (old.preBuild or "") + ''
170+
# cache breaker v3: 2026-02-19 all orphaned paths cleaned
171+
true
179172
'';
180173
});
181174
});

0 commit comments

Comments
 (0)