mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 09:37:59 +03:00
epoll-shim: init at unstable-2023-02-05
This commit is contained in:
parent
4825fd43ae
commit
5a0236306a
38
pkgs/development/libraries/epoll-shim/default.nix
Normal file
38
pkgs/development/libraries/epoll-shim/default.nix
Normal file
@ -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 ];
|
||||||
|
};
|
||||||
|
})
|
@ -19810,6 +19810,8 @@ with pkgs;
|
|||||||
|
|
||||||
entt = callPackage ../development/libraries/entt { };
|
entt = callPackage ../development/libraries/entt { };
|
||||||
|
|
||||||
|
epoll-shim = callPackage ../development/libraries/epoll-shim { };
|
||||||
|
|
||||||
libepoxy = callPackage ../development/libraries/libepoxy {
|
libepoxy = callPackage ../development/libraries/libepoxy {
|
||||||
inherit (darwin.apple_sdk.frameworks) Carbon OpenGL;
|
inherit (darwin.apple_sdk.frameworks) Carbon OpenGL;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user