Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, libiconv }: 2 3stdenv.mkDerivation rec { 4 pname = "libcddb"; 5 version = "1.3.2"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/libcddb/${pname}-${version}.tar.bz2"; 9 sha256 = "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim"; 10 }; 11 12 buildInputs = [ libiconv ]; 13 14 configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 15 "ac_cv_func_malloc_0_nonnull=yes" 16 "ac_cv_func_realloc_0_nonnull=yes" 17 ]; 18 19 doCheck = false; # fails 3 of 5 tests with locale errors 20 21 meta = with lib; { 22 description = "C library to access data on a CDDB server (freedb.org)"; 23 homepage = "https://libcddb.sourceforge.net/"; 24 license = licenses.lgpl2Plus; 25 mainProgram = "cddb_query"; 26 platforms = platforms.unix; 27 }; 28}