misuzu f04cda16d6 libmpcdec: fix cross build
Error without this fix:
```
checking for working memcmp... no
configure: error: working memcmp is not available.
```
2025-01-29 14:57:26 +02:00

25 lines
498 B
Nix

{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation rec {
pname = "libmpcdec";
version = "1.2.6";
src = fetchurl {
url = "https://files.musepack.net/source/libmpcdec-${version}.tar.bz2";
sha256 = "1a0jdyga1zfi4wgkg3905y6inghy3s4xfs5m4x7pal08m0llkmab";
};
# needed for cross builds
configureFlags = [ "ac_cv_func_memcmp_working=yes" ];
meta = {
description = "Musepack SV7 decoder library";
platforms = lib.platforms.unix;
license = lib.licenses.bsd3;
};
}