2023-12-10 14:12:47 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, neon, libdiscid, libxml2, pkg-config }:
|
2014-04-07 21:52:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-10-25 15:54:06 +00:00
|
|
|
version = "5.1.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libmusicbrainz";
|
2014-04-07 21:52:40 +00:00
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ neon libdiscid libxml2 ];
|
2014-04-07 21:52:40 +00:00
|
|
|
|
2016-10-25 15:54:06 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "metabrainz";
|
|
|
|
repo = "libmusicbrainz";
|
|
|
|
sha256 = "0ah9kaf3g3iv1cps2vs1hs33nfbjfx1xscpjgxr1cg28p4ri6jhq";
|
|
|
|
rev = "release-${version}";
|
2014-04-07 21:52:40 +00:00
|
|
|
};
|
|
|
|
|
2023-12-10 14:12:47 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with libxml2 2.12
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/metabrainz/libmusicbrainz/commit/9ba00067a15479a52262a5126bcb6889da5884b7.patch";
|
|
|
|
hash = "sha256-4VxTohLpjUNnNZGIoRpBjUz71mLP3blg4oFL7itnJnY=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/metabrainz/libmusicbrainz/commit/558c9ba0e6d702d5c877f75be98176f57abf1b02.patch";
|
|
|
|
hash = "sha256-hKYY4BJLh/Real3NugLwzc4gPBQ3NB/F63iI/aV8Wh8=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2014-04-07 21:52:40 +00:00
|
|
|
dontUseCmakeBuildDir=true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://musicbrainz.org/doc/libmusicbrainz";
|
2014-04-07 21:52:40 +00:00
|
|
|
description = "MusicBrainz Client Library (5.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.'';
|
2018-10-18 19:09:34 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.lgpl21;
|
2014-04-07 21:52:40 +00:00
|
|
|
};
|
|
|
|
}
|