Merge pull request #292691 from hraban/sbcl-assert-nocompress-purge

sbcl: assert coreCompression -> !purgeNixReferences
This commit is contained in:
7c6f434c 2024-03-11 23:06:12 +00:00 committed by GitHub
commit a1a8c01403
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,7 +94,14 @@ stdenv.mkDerivation (self: rec {
strace
]
);
buildInputs = lib.optionals coreCompression [ zstd ];
buildInputs = lib.optionals coreCompression (
# Declare at the point of actual use in case the caller wants to override
# buildInputs to sidestep this.
assert lib.assertMsg (!purgeNixReferences) ''
Cannot enable coreCompression when purging Nix references, because compression requires linking in zstd
'';
[ zstd ]
);
patches = lib.optionals (lib.versionOlder self.version "2.4.2") [
# Fixed in 2.4.2