Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 libpthreadstubs, 7 qtbase, 8 qtwebsockets, 9 wrapQtAppsHook, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "qcoro"; 14 version = "0.12.0"; 15 16 src = fetchFromGitHub { 17 owner = "danvratil"; 18 repo = "qcoro"; 19 rev = "v${version}"; 20 sha256 = "sha256-NF+va2pS2NJt4OE+yfN/jVnfkueBdjoyg2lQJhMRWe4="; 21 }; 22 23 outputs = [ 24 "out" 25 "dev" 26 ]; 27 28 nativeBuildInputs = [ 29 wrapQtAppsHook 30 cmake 31 ]; 32 33 buildInputs = [ 34 qtbase 35 qtwebsockets 36 libpthreadstubs 37 ]; 38 39 meta = with lib; { 40 description = "Library for using C++20 coroutines in connection with certain asynchronous Qt actions"; 41 homepage = "https://github.com/danvratil/qcoro"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ smitop ]; 44 platforms = platforms.linux; 45 }; 46}