2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, libiconv }:
|
2008-03-05 09:10:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 14:15:21 +00:00
|
|
|
pname = "libcddb";
|
|
|
|
version = "1.3.2";
|
2017-01-24 21:41:59 +00:00
|
|
|
|
2008-03-05 09:10:23 +00:00
|
|
|
src = fetchurl {
|
2021-06-20 14:15:21 +00:00
|
|
|
url = "mirror://sourceforge/libcddb/${pname}-${version}.tar.bz2";
|
2013-12-15 11:16:57 +00:00
|
|
|
sha256 = "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim";
|
2008-03-05 09:10:23 +00:00
|
|
|
};
|
|
|
|
|
2023-01-17 17:44:42 +00:00
|
|
|
buildInputs = [ libiconv ];
|
2017-01-24 21:41:59 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
2020-04-02 02:25:22 +00:00
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
|
|
|
|
2024-09-08 03:54:41 +00:00
|
|
|
env = lib.optionalAttrs stdenv.cc.isGNU {
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
|
|
|
|
};
|
|
|
|
|
2018-04-25 03:20:18 +00:00
|
|
|
doCheck = false; # fails 3 of 5 tests with locale errors
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "C library to access data on a CDDB server (freedb.org)";
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://libcddb.sourceforge.net/";
|
2017-01-24 21:41:59 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
2022-05-05 00:52:27 +00:00
|
|
|
mainProgram = "cddb_query";
|
2023-01-17 17:45:26 +00:00
|
|
|
platforms = platforms.unix;
|
2008-03-05 09:10:23 +00:00
|
|
|
};
|
|
|
|
}
|