1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "p8-platform";
10 version = "2.1.0.1";
11
12 src = fetchFromGitHub {
13 owner = "Pulse-Eight";
14 repo = "platform";
15 rev = "p8-platform-${version}";
16 sha256 = "sha256-zAI/AOLJAunv+cCQ6bOXrgkW+wl5frj3ktzx2cDeCCk=";
17 };
18
19 nativeBuildInputs = [ cmake ];
20
21 cmakeFlags = lib.optional stdenv.hostPlatform.isDarwin "-DCMAKE_CXX_FLAGS='-std=c++11'";
22
23 meta = with lib; {
24 description = "Platform library for libcec and Kodi addons";
25 homepage = "https://github.com/Pulse-Eight/platform";
26 license = lib.licenses.gpl2Plus;
27 platforms = platforms.all;
28 teams = [ teams.kodi ];
29 };
30}