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