mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 20:12:52 +00:00
23dce527d8
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/folly/versions. These checks were done: - built on NixOS - 0 of 0 passed binary check by having a zero exit code. - 0 of 0 passed binary check by having the new version present in output. - found 2018.05.21.00 with grep in /nix/store/n4qdpjqixmlcly3al00c5a2ivp6lh74f-folly-2018.05.21.00 - directory tree listing: https://gist.github.com/80adf61ca8bb6b1020e7b48cae590a9c - du listing: https://gist.github.com/dc5d5cb97ea76a087a50b733c659ebe5
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkgconfig, boost, libevent
|
|
, double-conversion, glog, google-gflags, python, libiberty, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "folly-${version}";
|
|
version = "2018.05.21.00";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = "folly";
|
|
rev = "v${version}";
|
|
sha256 = "0x8qa0g0rj4bmy5cra7f0ch0srq34d8d04f1c59q93xd6ggkr52w";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook python pkgconfig ];
|
|
buildInputs = [ libiberty boost libevent double-conversion glog google-gflags openssl ];
|
|
|
|
postPatch = "cd folly";
|
|
preBuild = ''
|
|
patchShebangs build
|
|
'';
|
|
|
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An open-source C++ library developed and used at Facebook";
|
|
homepage = https://github.com/facebook/folly;
|
|
license = licenses.asl20;
|
|
# 32bit is not supported: https://github.com/facebook/folly/issues/103
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|