1{ stdenv, lib, cmake, fetchFromGitHub, glog, folly, fmt_8, boost, gtest }:
2
3stdenv.mkDerivation rec {
4 pname = "edencommon";
5 version = "2023.03.06.00";
6
7 src = fetchFromGitHub {
8 owner = "facebookexperimental";
9 repo = "edencommon";
10 rev = "v${version}";
11 sha256 = "sha256-m54TaxThWe6bUa6Q1t+e99CLFOvut9vq9RSmimTNuaU=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 cmakeFlags = lib.optionals stdenv.isDarwin [
17 "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
18 ];
19
20 buildInputs = [
21 glog
22 folly
23 fmt_8
24 boost
25 gtest
26 ];
27
28 meta = with lib; {
29 description = "A shared library for Meta's source control filesystem tools (EdenFS and Watchman)";
30 homepage = "https://github.com/facebookexperimental/edencommon";
31 license = licenses.mit;
32 platforms = platforms.unix;
33 maintainers = with maintainers; [ kylesferrazza ];
34 };
35}