Merge pull request #63496 from tadeokondrak/discord-rpc/init/3.4.0

discord-rpc: init at 3.4.0
This commit is contained in:
Aaron Andersen 2019-07-12 07:27:06 -04:00 committed by GitHub
commit cc9ec8a423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 { };