blob: 63deaaf9df9edbe4a4e7a05a174f2bdfb64a8d1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation (finalAttrs: {
pname = "epoll-shim";
version = "0.0.20240608";
src = fetchFromGitHub {
owner = "jiixyj";
repo = "epoll-shim";
rev = "v${finalAttrs.version}";
hash = "sha256-PIVzVjXOECGv41KtAUmGzUiQ+4lVIyzGEOzVQQ1Pc54=";
};
nativeBuildInputs = [
cmake
];
cmakeFlags = [
"-DCMAKE_INSTALL_PKGCONFIGDIR=${placeholder "out"}/lib/pkgconfig"
"-DBUILD_TESTING=${lib.boolToString finalAttrs.finalPackage.doCheck}"
];
# https://github.com/jiixyj/epoll-shim/issues/41
# https://github.com/jiixyj/epoll-shim/pull/34
doCheck = !stdenv.hostPlatform.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 ];
};
})
|