From 8b2b6233df75ef979c82af5a9c8aaf238522ffda Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 16 Sep 2025 03:22:09 +0100 Subject: [PATCH] libmusicbrainz: 5.1.0 -> 5.1.0-unstable-2025-07-12 Last stable release in 2014, trickle of mundane fix commits since then, including CMake 4 support. Try not to think about how long ago the 3.x version was released, by the way. Diff: https://github.com/metabrainz/libmusicbrainz/compare/release-5.1.0...4efbed3afae11ef68281816088d7cf3d0f704dfe --- pkgs/by-name/li/libmusicbrainz/package.nix | 44 ++++++++-------------- 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/pkgs/by-name/li/libmusicbrainz/package.nix b/pkgs/by-name/li/libmusicbrainz/package.nix index 8b6a622965c8..daf48ae5bd47 100644 --- a/pkgs/by-name/li/libmusicbrainz/package.nix +++ b/pkgs/by-name/li/libmusicbrainz/package.nix @@ -10,49 +10,37 @@ pkg-config, }: -stdenv.mkDerivation rec { - version = "5.1.0"; +stdenv.mkDerivation { pname = "libmusicbrainz"; + version = "5.1.0-unstable-2025-07-12"; + + src = fetchFromGitHub { + owner = "metabrainz"; + repo = "libmusicbrainz"; + rev = "4efbed3afae11ef68281816088d7cf3d0f704dfe"; + hash = "sha256-2nMm+vm/uOT7AzTQIvfpmBsNYApZF0mekDEgt7tC6fw="; + }; nativeBuildInputs = [ cmake pkg-config ]; + buildInputs = [ neon libdiscid libxml2 ]; - src = fetchFromGitHub { - owner = "metabrainz"; - repo = "libmusicbrainz"; - sha256 = "0ah9kaf3g3iv1cps2vs1hs33nfbjfx1xscpjgxr1cg28p4ri6jhq"; - rev = "release-${version}"; - }; - - 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="; - }) - ]; - - dontUseCmakeBuildDir = true; - - meta = with lib; { + meta = { homepage = "http://musicbrainz.org/doc/libmusicbrainz"; - description = "MusicBrainz Client Library (5.x version)"; + description = "MusicBrainz Client Library"; 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; + add MusicBrainz lookup capabilities to their applications. + ''; + platforms = lib.platforms.all; + license = lib.licenses.lgpl21Plus; }; }