nixpkgs/pkgs/development/libraries/qcoro/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
811 B
Nix
Raw Normal View History

{ stdenv
, gcc12Stdenv
, lib
2021-10-16 18:09:20 +00:00
, fetchFromGitHub
, cmake
, libpthreadstubs
, qtbase
, qtwebsockets
, wrapQtAppsHook
2021-10-16 18:09:20 +00:00
}:
gcc12Stdenv.mkDerivation rec {
2021-10-16 18:09:20 +00:00
pname = "qcoro";
2022-11-22 15:33:44 +00:00
version = "0.7.0";
2021-10-16 18:09:20 +00:00
src = fetchFromGitHub {
owner = "danvratil";
repo = "qcoro";
rev = "v${version}";
2022-11-22 15:33:44 +00:00
sha256 = "cHd2CwzP4oD/gy9qsDWIMgvlfBQq1p9C4G7JNAs4XW4=";
2021-10-16 18:09:20 +00:00
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [
wrapQtAppsHook
2021-10-16 18:09:20 +00:00
cmake
];
buildInputs = [
qtbase
qtwebsockets
2021-10-16 18:09:20 +00:00
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;
};
}