nixpkgs/pkgs/development/libraries/qcoro/default.nix
Vladimír Čunát 8627b384af
treewide: gcc11Stdenv on x86_64-linux -> gcc12Stdenv
These seemed done to upgrade version on aarch64-linux,
but now they were (also) downgrading on x86_64-linux.
I checked that they still build; some cases were even fixed, e.g.:
https://hydra.nixos.org/log/40jmdmnk07ac7xwwxmdqa7smvc3xflm2-qcoro-0.7.0.drv
2023-02-05 10:13:34 +01:00

44 lines
811 B
Nix

{ stdenv
, gcc12Stdenv
, lib
, fetchFromGitHub
, cmake
, libpthreadstubs
, qtbase
, qtwebsockets
, wrapQtAppsHook
}:
gcc12Stdenv.mkDerivation rec {
pname = "qcoro";
version = "0.7.0";
src = fetchFromGitHub {
owner = "danvratil";
repo = "qcoro";
rev = "v${version}";
sha256 = "cHd2CwzP4oD/gy9qsDWIMgvlfBQq1p9C4G7JNAs4XW4=";
};
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;
};
}