2023-05-09 10:27:05 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
2021-10-16 18:09:20 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
libpthreadstubs,
|
|
|
|
qtbase,
|
2022-08-05 07:17:37 +00:00
|
|
|
qtwebsockets,
|
|
|
|
wrapQtAppsHook,
|
2021-10-16 18:09:20 +00:00
|
|
|
}:
|
|
|
|
|
2023-05-09 10:27:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-10-16 18:09:20 +00:00
|
|
|
pname = "qcoro";
|
2024-10-04 14:12:56 +00:00
|
|
|
version = "0.11.0";
|
2021-10-16 18:09:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danvratil";
|
|
|
|
repo = "qcoro";
|
|
|
|
rev = "v${version}";
|
2024-10-04 14:12:56 +00:00
|
|
|
sha256 = "sha256-teRuWtNR8r/MHZhqphazr7Jmn43qsHGv9eXOGrhSND0=";
|
2021-10-16 18:09:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-08-05 07:17:37 +00:00
|
|
|
wrapQtAppsHook
|
2021-10-16 18:09:20 +00:00
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
2022-08-05 07:17:37 +00:00
|
|
|
qtwebsockets
|
2021-10-16 18:09:20 +00:00
|
|
|
libpthreadstubs
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for using C++20 coroutines in connection with certain asynchronous Qt actions";
|
|
|
|
homepage = "https://github.com/danvratil/qcoro";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ smitop ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|