discord-rpc: init at 3.4.0

This commit is contained in:
Tadeo Kondrak 2019-06-18 20:58:33 -06:00
parent ed86bbad84
commit aab48064e9
No known key found for this signature in database
GPG Key ID: C4654C621CD5277C
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ stdenv
, fetchFromGitHub
, cmake
, rapidjson
, AppKit
, buildExamples ? false
}:
stdenv.mkDerivation rec {
pname = "discord-rpc";
version = "3.4.0";
src = fetchFromGitHub {
owner = "discordapp";
repo = pname;
rev = "v${version}";
sha256 = "04cxhqdv5r92lrpnhxf8702a8iackdf3sfk1050z7pijbijiql2a";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
rapidjson
] ++ stdenv.lib.optional stdenv.isDarwin AppKit;
cmakeFlags = [
"-DBUILD_SHARED_LIBS=true"
"-DBUILD_EXAMPLES=${stdenv.lib.boolToString buildExamples}"
];
meta = with stdenv.lib; {
description = "Official library to interface with the Discord client";
homepage = "https://github.com/discordapp/discord-rpc";
license = licenses.mit;
maintainers = with maintainers; [ tadeokondrak ];
platforms = platforms.all;
};
}

View File

@ -10274,6 +10274,10 @@ in
directfb = callPackage ../development/libraries/directfb { };
discord-rpc = callPackage ../development/libraries/discord-rpc {
inherit (darwin.apple_sdk.frameworks) AppKit;
};
dlib = callPackage ../development/libraries/dlib { };
docopt_cpp = callPackage ../development/libraries/docopt_cpp { };