1{ lib
2, mkDerivation
3, fetchFromGitHub
4, cmake
5, libpthreadstubs
6, qtbase
7}:
8
9mkDerivation rec {
10 pname = "qcoro";
11 version = "0.3.0";
12
13 src = fetchFromGitHub {
14 owner = "danvratil";
15 repo = "qcoro";
16 rev = "v${version}";
17 sha256 = "09543hpy590dndmlxmcm8c58m97blhaii4wbjr655qxdanhhxgzi";
18 };
19
20 outputs = [ "out" "dev" ];
21
22 nativeBuildInputs = [
23 cmake
24 ];
25
26 buildInputs = [
27 qtbase
28 libpthreadstubs
29 ];
30
31 meta = with lib; {
32 description = "Library for using C++20 coroutines in connection with certain asynchronous Qt actions";
33 homepage = "https://github.com/danvratil/qcoro";
34 license = licenses.mit;
35 maintainers = with maintainers; [ smitop ];
36 platforms = platforms.linux;
37 };
38}