diff options
author | Stanisław Pitucha <git@viraptor.info> | 2022-09-02 14:30:26 +1000 |
---|---|---|
committer | Stanisław Pitucha <stan.pitucha@envato.com> | 2022-09-02 14:31:36 +1000 |
commit | 9ba11d56a3e3339160e80844e73b4d809c669607 (patch) | |
tree | c666d04c5683f978bb9fb439ef77869e4ad95518 /pkgs/development/libraries/libmusicbrainz | |
parent | cc9c837aa23a08b18bdda489dbe9728c5aa88466 (diff) |
libmusicbrainz3: fix darwin build
Diffstat (limited to 'pkgs/development/libraries/libmusicbrainz')
-rw-r--r-- | pkgs/development/libraries/libmusicbrainz/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/libraries/libmusicbrainz/v3-darwin.patch | 22 |
2 files changed, 27 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libmusicbrainz/default.nix b/pkgs/development/libraries/libmusicbrainz/default.nix index 60a6c4f69eb7f..a77d64ffddce3 100644 --- a/pkgs/development/libraries/libmusicbrainz/default.nix +++ b/pkgs/development/libraries/libmusicbrainz/default.nix @@ -12,8 +12,12 @@ stdenv.mkDerivation rec { sha256 = "1i9qly13bwwmgj68vma766hgvsd1m75236haqsp9zgh5znlmkm3z"; }; + patches = [ + # Fix spacing around string literal for modern clang + ./v3-darwin.patch + ]; + meta = with lib; { - broken = stdenv.isDarwin; homepage = "http://musicbrainz.org/doc/libmusicbrainz"; description = "MusicBrainz Client Library (3.x version)"; longDescription = '' diff --git a/pkgs/development/libraries/libmusicbrainz/v3-darwin.patch b/pkgs/development/libraries/libmusicbrainz/v3-darwin.patch new file mode 100644 index 0000000000000..af97eaff1ed37 --- /dev/null +++ b/pkgs/development/libraries/libmusicbrainz/v3-darwin.patch @@ -0,0 +1,22 @@ +diff --git a/src/webservice.cpp b/src/webservice.cpp +index 3a36167..df14812 100644 +--- a/src/webservice.cpp ++++ b/src/webservice.cpp +@@ -184,7 +184,7 @@ WebService::get(const std::string &entity, + if (!sess) + throw WebServiceError("ne_session_create() failed."); + ne_set_server_auth(sess, httpAuth, this); +- ne_set_useragent(sess, PACKAGE"/"VERSION); ++ ne_set_useragent(sess, PACKAGE "/" VERSION); + + // Use proxy server + if (!d->proxyHost.empty()) { +@@ -269,7 +269,7 @@ WebService::post(const std::string &entity, + if (!sess) + throw WebServiceError("ne_session_create() failed."); + ne_set_server_auth(sess, httpAuth, this); +- ne_set_useragent(sess, PACKAGE"/"VERSION); ++ ne_set_useragent(sess, PACKAGE "/" VERSION); + + // Use proxy server + if (!d->proxyHost.empty()) { |