libck: cross-compilation fix

This commit is contained in:
Alexander V. Nikolaev 2023-12-19 19:59:16 +02:00
parent b3f57a6ab4
commit b39cd260dd
No known key found for this signature in database
GPG Key ID: 8FB3BA8713196CA3

View File

@ -11,6 +11,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-HUC+8Vd0koAmumRZ8gS5u6LVa7fUfkIYRaxVv6/7Hgg=";
};
postPatch = ''
substituteInPlace \
configure \
--replace \
'COMPILER=`./.1 2> /dev/null`' \
"COMPILER=gcc"
'';
configureFlags = ["--platform=${stdenv.hostPlatform.parsed.cpu.name}}"];
dontDisableStatic = true;
meta = with lib; {