Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 cmake, 6 neon, 7 libdiscid, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "libmusicbrainz"; 12 version = "3.0.3"; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ 16 neon 17 libdiscid 18 ]; 19 20 src = fetchurl { 21 url = "ftp://ftp.musicbrainz.org/pub/musicbrainz/${pname}-${version}.tar.gz"; 22 sha256 = "1i9qly13bwwmgj68vma766hgvsd1m75236haqsp9zgh5znlmkm3z"; 23 }; 24 25 patches = [ 26 # Fix spacing around string literal for modern clang 27 ./v3-darwin.patch 28 ]; 29 30 meta = with lib; { 31 homepage = "http://musicbrainz.org/doc/libmusicbrainz"; 32 description = "MusicBrainz Client Library (3.x version)"; 33 longDescription = '' 34 The libmusicbrainz (also known as mb_client or MusicBrainz Client 35 Library) is a development library geared towards developers who wish to 36 add MusicBrainz lookup capabilities to their applications.''; 37 platforms = platforms.all; 38 license = licenses.lgpl21; 39 }; 40}