2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, libevent
|
|
|
|
, curl
|
|
|
|
, spdlog
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "coeurl";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.3.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "nheko.im";
|
|
|
|
owner = "nheko-reborn";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-sN+YSddUOdnJLcnHyWdjNm1PpxCwnkwiqSvyrwUrg6w=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ninja pkg-config meson ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [ libevent curl spdlog ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple async wrapper around CURL for C++";
|
|
|
|
homepage = "https://nheko.im/nheko-reborn/coeurl";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
}
|