lol

libmusicbrainz3: fix darwin build

authored by

Stanisław Pitucha and committed by
Stanisław Pitucha
9ba11d56 cc9c837a

+27 -1
+5 -1
pkgs/development/libraries/libmusicbrainz/default.nix
··· 12 12 sha256 = "1i9qly13bwwmgj68vma766hgvsd1m75236haqsp9zgh5znlmkm3z"; 13 13 }; 14 14 15 + patches = [ 16 + # Fix spacing around string literal for modern clang 17 + ./v3-darwin.patch 18 + ]; 19 + 15 20 meta = with lib; { 16 - broken = stdenv.isDarwin; 17 21 homepage = "http://musicbrainz.org/doc/libmusicbrainz"; 18 22 description = "MusicBrainz Client Library (3.x version)"; 19 23 longDescription = ''
+22
pkgs/development/libraries/libmusicbrainz/v3-darwin.patch
··· 1 + diff --git a/src/webservice.cpp b/src/webservice.cpp 2 + index 3a36167..df14812 100644 3 + --- a/src/webservice.cpp 4 + +++ b/src/webservice.cpp 5 + @@ -184,7 +184,7 @@ WebService::get(const std::string &entity, 6 + if (!sess) 7 + throw WebServiceError("ne_session_create() failed."); 8 + ne_set_server_auth(sess, httpAuth, this); 9 + - ne_set_useragent(sess, PACKAGE"/"VERSION); 10 + + ne_set_useragent(sess, PACKAGE "/" VERSION); 11 + 12 + // Use proxy server 13 + if (!d->proxyHost.empty()) { 14 + @@ -269,7 +269,7 @@ WebService::post(const std::string &entity, 15 + if (!sess) 16 + throw WebServiceError("ne_session_create() failed."); 17 + ne_set_server_auth(sess, httpAuth, this); 18 + - ne_set_useragent(sess, PACKAGE"/"VERSION); 19 + + ne_set_useragent(sess, PACKAGE "/" VERSION); 20 + 21 + // Use proxy server 22 + if (!d->proxyHost.empty()) {