Files
nixpkgs/pkgs/by-name/li/libverto/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
glib,
libev,
libevent,
pkg-config,
glibSupport ? true,
libevSupport ? true,
libeventSupport ? true,
}:
let
inherit (lib) optional;
in
stdenv.mkDerivation (finalAttrs: {
pname = "libverto";
version = "0.3.2";
src = fetchFromGitHub {
owner = "latchset";
repo = "libverto";
rev = finalAttrs.version;
hash = "sha256-csoJ0WdKyrza8kBSMKoaItKvcbijI6Wl8nWCbywPScQ=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs =
optional glibSupport glib ++ optional libevSupport libev ++ optional libeventSupport libevent;
meta = with lib; {
homepage = "https://github.com/latchset/libverto";
description = "Asynchronous event loop abstraction library";
longDescription = ''
Libverto exists to solve an important problem: many applications and
libraries are unable to write asynchronous code because they are unable to
pick an event loop. This is particularly true of libraries who want to be
useful to many applications who use loops that do not integrate with one
another or which use home-grown loops. libverto provides a loop-neutral
async api which allows the library to expose asynchronous interfaces and
offload the choice of the main loop to the application.
'';
license = licenses.mit;
maintainers = [ ];
platforms = platforms.unix;
};
})