1{ lib
2, stdenv
3, fetchFromGitLab
4, ninja
5, pkg-config
6, meson
7, libevent
8, curl
9, spdlog
10}:
11
12stdenv.mkDerivation rec {
13 pname = "coeurl";
14 version = "0.3.0";
15
16 src = fetchFromGitLab {
17 domain = "nheko.im";
18 owner = "nheko-reborn";
19 repo = pname;
20 rev = "v${version}";
21 hash = "sha256-sN+YSddUOdnJLcnHyWdjNm1PpxCwnkwiqSvyrwUrg6w=";
22 };
23
24 nativeBuildInputs = [ ninja pkg-config meson ];
25
26 buildInputs = [ libevent curl spdlog ];
27
28 meta = with lib; {
29 description = "A simple async wrapper around CURL for C++";
30 homepage = "https://nheko.im/nheko-reborn/coeurl";
31 license = licenses.mit;
32 platforms = platforms.all;
33 maintainers = with maintainers; [ rnhmjoj ];
34 };
35}