Unverified Commit a1a8c014 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

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

sbcl: assert coreCompression -> !purgeNixReferences
parents 73ac8da7 3349c41f
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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