2021-10-16 19:09:20 +01:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, libpthreadstubs
|
|
|
|
, qtbase
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qcoro";
|
2022-01-24 20:51:10 +00:00
|
|
|
version = "0.4.0";
|
2021-10-16 19:09:20 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danvratil";
|
|
|
|
repo = "qcoro";
|
|
|
|
rev = "v${version}";
|
2022-01-24 20:51:10 +00:00
|
|
|
sha256 = "sha256-RVpyL+BklX8Wyk9Xj9UyuvNK5Vev8ZsrOSMxX1HtcHU=";
|
2021-10-16 19:09:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
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;
|
2022-01-24 20:51:10 +00:00
|
|
|
badPlatforms = platforms.aarch64;
|
2021-10-16 19:09:20 +01:00
|
|
|
};
|
|
|
|
}
|