depot/third_party/nixpkgs/pkgs/by-name/dp/dpp/package.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

48 lines
1.1 KiB
Nix

{ stdenv
, fetchFromGitHub
, cmake
, libopus
, openssl
, zlib
, libsodium
, pkg-config
, lib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dpp";
version = "10.0.32";
src = fetchFromGitHub {
owner = "brainboxdotcc";
repo = "DPP";
rev = "v${finalAttrs.version}";
hash = "sha256-pr7u4x4xdyydEQcNROjfkoV/ODqixugcTuCWMGeixC8=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
openssl
zlib
libsodium
libopus
];
meta = {
description = "Discord C++ Library";
longDescription = ''
D++ (DPP) is a lightweight and simple library for Discord written in modern C++.
It is designed to cover as much of the API specification as possible and to have
an incredibly small memory footprint, even when caching large amounts of data.
This package contains version ${finalAttrs.version} of the DPP library.
'';
homepage = "https://github.com/brainboxdotcc/DPP";
changelog = "https://github.com/brainboxdotcc/DPP/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ xbz ];
platforms = lib.platforms.linux;
};
})