mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
895 B
Nix
33 lines
895 B
Nix
{ lib, stdenv, fetchurl, libiconv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcddb";
|
|
version = "1.3.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/libcddb/${pname}-${version}.tar.bz2";
|
|
sha256 = "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim";
|
|
};
|
|
|
|
buildInputs = [ libiconv ];
|
|
|
|
configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
];
|
|
|
|
env = lib.optionalAttrs stdenv.cc.isGNU {
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
|
|
};
|
|
|
|
doCheck = false; # fails 3 of 5 tests with locale errors
|
|
|
|
meta = with lib; {
|
|
description = "C library to access data on a CDDB server (freedb.org)";
|
|
homepage = "https://libcddb.sourceforge.net/";
|
|
license = licenses.lgpl2Plus;
|
|
mainProgram = "cddb_query";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|