8 stdenv.mkDerivation rec {
13 url = "mirror://sourceforge/libcddb/${pname}-${version}.tar.bz2";
14 sha256 = "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim";
17 buildInputs = [ libiconv ];
19 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
20 "ac_cv_func_malloc_0_nonnull=yes"
21 "ac_cv_func_realloc_0_nonnull=yes"
24 env = lib.optionalAttrs stdenv.cc.isGNU {
25 NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
28 doCheck = false; # fails 3 of 5 tests with locale errors
31 description = "C library to access data on a CDDB server (freedb.org)";
32 homepage = "https://libcddb.sourceforge.net/";
33 license = licenses.lgpl2Plus;
34 mainProgram = "cddb_query";
35 platforms = platforms.unix;