2019-10-21 16:45:53 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, cmake, doxygen, qt4, qjson }:
|
2014-11-17 00:16:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libechonest";
|
2019-10-21 16:45:53 +01:00
|
|
|
version = "2.3.1";
|
2014-11-17 00:16:08 +00:00
|
|
|
|
2019-10-21 16:45:53 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lfranchi";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0xbavf9f355dl1d3qv59x4ryypqrdanh9xdvw2d0q66l008crdkq";
|
2014-11-17 00:16:08 +00:00
|
|
|
};
|
|
|
|
|
2019-10-21 16:45:53 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/lfranchi/libechonest/commit/009514f65044823ef29045397d4b58dd04d09977.patch";
|
|
|
|
sha256 = "0dmmpi7hixdngwiv045ilqrzyzkf56xpfyihcsx5i3xya2m0mynx";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/lfranchi/libechonest/commit/3ce779536d56a163656e8098913f923e6cda2b5c.patch";
|
|
|
|
sha256 = "1vasd3sgqah562vxk71jibyws5cbihjjfnffd50qvdm2xqgvbx94";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake doxygen ];
|
|
|
|
buildInputs = [ qt4 qjson ];
|
|
|
|
|
2014-11-17 00:16:08 +00:00
|
|
|
enableParallelBuilding = true;
|
2019-10-21 16:45:53 +01:00
|
|
|
doCheck = false; # requires network access
|
2014-11-17 00:16:08 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A C++/Qt wrapper around the Echo Nest API";
|
2019-10-21 16:45:53 +01:00
|
|
|
homepage = "https://projects.kde.org/projects/playground/libs/libechonest";
|
2014-11-17 00:16:08 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-11-17 00:16:08 +00:00
|
|
|
};
|
|
|
|
}
|