1 { lib, stdenv, fetchurl, cmake, pkg-config, darwin }:
3 stdenv.mkDerivation rec {
7 nativeBuildInputs = [ cmake pkg-config ];
9 buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ];
12 url = "http://ftp.musicbrainz.org/pub/musicbrainz/${pname}/${pname}-${version}.tar.gz";
13 sha256 = "sha256-3V6PHJrq1ELiO3SanMkzY3LmLoitcHmitiiVsDkMsoI=";
16 NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation -framework IOKit";
19 description = "A C library for creating MusicBrainz DiscIDs from audio CDs";
20 homepage = "http://musicbrainz.org/doc/libdiscid";
21 maintainers = with maintainers; [ ehmry ];
22 license = licenses.lgpl21;
23 platforms = platforms.all;