Merge pull request #63496 from tadeokondrak/discord-rpc/init/3.4.0
discord-rpc: init at 3.4.0
This commit is contained in:
commit
cc9ec8a423
40
pkgs/development/libraries/discord-rpc/default.nix
Normal file
40
pkgs/development/libraries/discord-rpc/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user