about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/qcoro/default.nix
blob: 62608e390f8bcb79c0fa818bc43ab7ed869f1179 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, libpthreadstubs
, qtbase
}:

mkDerivation rec {
  pname = "qcoro";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "danvratil";
    repo = "qcoro";
    rev = "v${version}";
    sha256 = "09543hpy590dndmlxmcm8c58m97blhaii4wbjr655qxdanhhxgzi";
  };

  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;
  };
}