1 { lib, stdenv, fetchurl, libiconv }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/libcddb/${pname}-${version}.tar.bz2";
9 sha256 = "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim";
12 buildInputs = lib.optional stdenv.isDarwin libiconv;
14 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
15 "ac_cv_func_malloc_0_nonnull=yes"
16 "ac_cv_func_realloc_0_nonnull=yes"
19 doCheck = false; # fails 3 of 5 tests with locale errors
22 description = "C library to access data on a CDDB server (freedb.org)";
23 homepage = "http://libcddb.sourceforge.net/";
24 license = licenses.lgpl2Plus;
25 mainProgram = "cddb_query";
26 platforms = platforms.linux ++ platforms.darwin;