Skip to content

Commit

Permalink
Merge pull request #222380 from wegank/epoll-shim-init
Browse files Browse the repository at this point in the history
epoll-shim: init at unstable-2023-02-05
  • Loading branch information
wegank authored Mar 22, 2023
2 parents 548a54f + 5a02363 commit a0ffb1f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/libraries/epoll-shim/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:

stdenv.mkDerivation (finalAttrs: {
pname = "epoll-shim";
version = "unstable-2023-02-05";

src = fetchFromGitHub {
owner = "jiixyj";
repo = finalAttrs.pname;
rev = "702e845d7850e30a7b9e29f759c9c8f7bb40784b";
hash = "sha256-QfBnF0/P2KjQggEdJCdqVJDeV/+iaN0OZIwIGyIyr68=";
};

nativeBuildInputs = [
cmake
];

cmakeFlags = [
"-DCMAKE_INSTALL_PKGCONFIGDIR=${placeholder "out"}/lib/pkgconfig"
"-DBUILD_TESTING=${lib.boolToString finalAttrs.doCheck}"
];

# https://github.com/jiixyj/epoll-shim/issues/41
# https://github.com/jiixyj/epoll-shim/pull/34
doCheck = !stdenv.isDarwin;

meta = with lib; {
description = "Small epoll implementation using kqueue";
homepage = "https://github.com/jiixyj/epoll-shim";
license = licenses.mit;
platforms = platforms.darwin ++ platforms.freebsd ++ platforms.netbsd ++ platforms.openbsd;
maintainers = with maintainers; [ wegank ];
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19809,6 +19809,8 @@ with pkgs;

entt = callPackage ../development/libraries/entt { };

epoll-shim = callPackage ../development/libraries/epoll-shim { };

libepoxy = callPackage ../development/libraries/libepoxy {
inherit (darwin.apple_sdk.frameworks) Carbon OpenGL;
};
Expand Down

0 comments on commit a0ffb1f

Please sign in to comment.