Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / qcoro / default.nix
blob96cf2cd6fc8eaaeb5733819b785667ad221d8dcc
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , libpthreadstubs
6 , qtbase
7 , qtwebsockets
8 , wrapQtAppsHook
9 }:
11 stdenv.mkDerivation rec {
12   pname = "qcoro";
13   version = "0.9.0";
15   src = fetchFromGitHub {
16     owner = "danvratil";
17     repo = "qcoro";
18     rev = "v${version}";
19     sha256 = "sha256-kf2W/WAZCpLkq1UIy7iZri4vNaqjGjotB/Xsb+byZV4=";
20   };
22   outputs = [ "out" "dev" ];
24   nativeBuildInputs = [
25     wrapQtAppsHook
26     cmake
27   ];
29   buildInputs = [
30     qtbase
31     qtwebsockets
32     libpthreadstubs
33   ];
35   meta = with lib; {
36     description = "Library for using C++20 coroutines in connection with certain asynchronous Qt actions";
37     homepage = "https://github.com/danvratil/qcoro";
38     license = licenses.mit;
39     maintainers = with maintainers; [ smitop ];
40     platforms = platforms.linux;
41   };