nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 39 lines 1.2 kB view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, doxygen, qt4, qjson }: 2 3stdenv.mkDerivation rec { 4 pname = "libechonest"; 5 version = "2.3.1"; 6 7 src = fetchFromGitHub { 8 owner = "lfranchi"; 9 repo = pname; 10 rev = version; 11 sha256 = "0xbavf9f355dl1d3qv59x4ryypqrdanh9xdvw2d0q66l008crdkq"; 12 }; 13 14 # Fix build with GCC 11. 15 NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 16 17 patches = [ 18 (fetchpatch { 19 url = "https://github.com/lfranchi/libechonest/commit/009514f65044823ef29045397d4b58dd04d09977.patch"; 20 sha256 = "0dmmpi7hixdngwiv045ilqrzyzkf56xpfyihcsx5i3xya2m0mynx"; 21 }) 22 (fetchpatch { 23 url = "https://github.com/lfranchi/libechonest/commit/3ce779536d56a163656e8098913f923e6cda2b5c.patch"; 24 sha256 = "1vasd3sgqah562vxk71jibyws5cbihjjfnffd50qvdm2xqgvbx94"; 25 }) 26 ]; 27 28 nativeBuildInputs = [ cmake doxygen ]; 29 buildInputs = [ qt4 qjson ]; 30 31 doCheck = false; # requires network access 32 33 meta = { 34 description = "A C++/Qt wrapper around the Echo Nest API"; 35 homepage = "https://projects.kde.org/projects/playground/libs/libechonest"; 36 license = lib.licenses.gpl2Plus; 37 platforms = lib.platforms.unix; 38 }; 39}