mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
e520d6af29
Cross compilation fixes [april 2020]
27 lines
780 B
Nix
27 lines
780 B
Nix
{ stdenv, fetchurl, libiconv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libcddb-1.3.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/libcddb/${name}.tar.bz2";
|
|
sha256 = "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim";
|
|
};
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin libiconv;
|
|
|
|
configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
];
|
|
|
|
doCheck = false; # fails 3 of 5 tests with locale errors
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "C library to access data on a CDDB server (freedb.org)";
|
|
homepage = "http://libcddb.sourceforge.net/";
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|