mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
43 lines
799 B
Nix
43 lines
799 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, libpthreadstubs
|
|
, qtbase
|
|
, qtwebsockets
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qcoro";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danvratil";
|
|
repo = "qcoro";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kf2W/WAZCpLkq1UIy7iZri4vNaqjGjotB/Xsb+byZV4=";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [
|
|
wrapQtAppsHook
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtwebsockets
|
|
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;
|
|
};
|
|
}
|