linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / libechonest / default.nix
blob29a0a63a03e7f570f4874b19f7f9508e86b605a2
1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, doxygen, qt4, qjson }:
3 stdenv.mkDerivation rec {
4   pname = "libechonest";
5   version = "2.3.1";
7   src = fetchFromGitHub {
8     owner = "lfranchi";
9     repo = pname;
10     rev = version;
11     sha256 = "0xbavf9f355dl1d3qv59x4ryypqrdanh9xdvw2d0q66l008crdkq";
12   };
14   patches = [
15     (fetchpatch {
16       url = "https://github.com/lfranchi/libechonest/commit/009514f65044823ef29045397d4b58dd04d09977.patch";
17       sha256 = "0dmmpi7hixdngwiv045ilqrzyzkf56xpfyihcsx5i3xya2m0mynx";
18     })
19     (fetchpatch {
20       url = "https://github.com/lfranchi/libechonest/commit/3ce779536d56a163656e8098913f923e6cda2b5c.patch";
21       sha256 = "1vasd3sgqah562vxk71jibyws5cbihjjfnffd50qvdm2xqgvbx94";
22     })
23   ];
25   nativeBuildInputs = [ cmake doxygen ];
26   buildInputs = [ qt4 qjson ];
28   doCheck = false; # requires network access
30   meta = {
31     description = "A C++/Qt wrapper around the Echo Nest API";
32     homepage = "https://projects.kde.org/projects/playground/libs/libechonest";
33     license = lib.licenses.gpl2Plus;
34     platforms = lib.platforms.unix;
35   };