nixpkgs/pkgs/by-name/li/libverto/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01: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 = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
})