Merge pull request #222380 from wegank/epoll-shim-init

epoll-shim: init at unstable-2023-02-05

authored by Weijia Wang and committed by GitHub a0ffb1f4 548a54f4

+40
+38
pkgs/development/libraries/epoll-shim/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + }: 6 + 7 + stdenv.mkDerivation (finalAttrs: { 8 + pname = "epoll-shim"; 9 + version = "unstable-2023-02-05"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "jiixyj"; 13 + repo = finalAttrs.pname; 14 + rev = "702e845d7850e30a7b9e29f759c9c8f7bb40784b"; 15 + hash = "sha256-QfBnF0/P2KjQggEdJCdqVJDeV/+iaN0OZIwIGyIyr68="; 16 + }; 17 + 18 + nativeBuildInputs = [ 19 + cmake 20 + ]; 21 + 22 + cmakeFlags = [ 23 + "-DCMAKE_INSTALL_PKGCONFIGDIR=${placeholder "out"}/lib/pkgconfig" 24 + "-DBUILD_TESTING=${lib.boolToString finalAttrs.doCheck}" 25 + ]; 26 + 27 + # https://github.com/jiixyj/epoll-shim/issues/41 28 + # https://github.com/jiixyj/epoll-shim/pull/34 29 + doCheck = !stdenv.isDarwin; 30 + 31 + meta = with lib; { 32 + description = "Small epoll implementation using kqueue"; 33 + homepage = "https://github.com/jiixyj/epoll-shim"; 34 + license = licenses.mit; 35 + platforms = platforms.darwin ++ platforms.freebsd ++ platforms.netbsd ++ platforms.openbsd; 36 + maintainers = with maintainers; [ wegank ]; 37 + }; 38 + })
+2
pkgs/top-level/all-packages.nix
··· 19809 19809 19810 19810 entt = callPackage ../development/libraries/entt { }; 19811 19811 19812 + epoll-shim = callPackage ../development/libraries/epoll-shim { }; 19813 + 19812 19814 libepoxy = callPackage ../development/libraries/libepoxy { 19813 19815 inherit (darwin.apple_sdk.frameworks) Carbon OpenGL; 19814 19816 };