2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, neon, libdiscid }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "libmusicbrainz";
|
|
|
|
version = "3.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ neon libdiscid ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "ftp://ftp.musicbrainz.org/pub/musicbrainz/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1i9qly13bwwmgj68vma766hgvsd1m75236haqsp9zgh5znlmkm3z";
|
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
patches = [
|
|
|
|
# Fix spacing around string literal for modern clang
|
|
|
|
./v3-darwin.patch
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://musicbrainz.org/doc/libmusicbrainz";
|
|
|
|
description = "MusicBrainz Client Library (3.x version)";
|
|
|
|
longDescription = ''
|
|
|
|
The libmusicbrainz (also known as mb_client or MusicBrainz Client
|
|
|
|
Library) is a development library geared towards developers who wish to
|
|
|
|
add MusicBrainz lookup capabilities to their applications.'';
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
}
|