nixpkgs/pkgs/development/libraries/edencommon/default.nix
2023-02-18 00:29:17 +00:00

36 lines
884 B
Nix

{ stdenv, lib, cmake, fetchFromGitHub, glog, folly, fmt_8, boost, gtest }:
stdenv.mkDerivation rec {
pname = "edencommon";
version = "2023.02.13.00";
src = fetchFromGitHub {
owner = "facebookexperimental";
repo = "edencommon";
rev = "v${version}";
sha256 = "sha256-WxxE7ePZuNkSKRQG5Vni51xrrZT6BsKwwvhzykQf9X4=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = lib.optionals stdenv.isDarwin [
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
];
buildInputs = [
glog
folly
fmt_8
boost
gtest
];
meta = with lib; {
description = "A shared library for Meta's source control filesystem tools (EdenFS and Watchman)";
homepage = "https://github.com/facebookexperimental/edencommon";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ kylesferrazza ];
};
}