tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
folly: 2015-09-17 -> 0.57.0
Nikolay Amiantov
10 years ago
f2ce7bb0
786b6570
+13
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
folly
default.nix
+13
-5
pkgs/development/libraries/folly/default.nix
···
1
-
{ stdenv, fetchFromGitHub, autoreconfHook, boost, libevent, double_conversion, glog
2
, google-gflags, python, libiberty, openssl }:
3
4
stdenv.mkDerivation rec {
5
-
version = "2015-09-17";
6
name = "folly-${version}";
7
8
src = fetchFromGitHub {
9
owner = "facebook";
10
repo = "folly";
11
-
rev = "e4527fb5d04f5fec823bd6a2402b620a6e1a64e3";
12
-
sha256 = "0iicq19yylafr7qs221xgk8pcwf6nnyx6srgsx9y9cyf72siadcb";
13
};
14
0
0
0
0
0
0
0
0
15
nativeBuildInputs = [ autoreconfHook python ];
16
buildInputs = [ libiberty boost libevent double_conversion glog google-gflags openssl ];
17
18
-
postUnpack = "sourceRoot=\${sourceRoot}/folly";
19
preBuild = ''
20
patchShebangs build
21
'';
···
1
+
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, boost, libevent, double_conversion, glog
2
, google-gflags, python, libiberty, openssl }:
3
4
stdenv.mkDerivation rec {
5
+
version = "0.57.0";
6
name = "folly-${version}";
7
8
src = fetchFromGitHub {
9
owner = "facebook";
10
repo = "folly";
11
+
rev = "v${version}";
12
+
sha256 = "12b9bkwmndfwmsknc209kpplxn9wqmwr3p2h0l2szrppq4qqyfq9";
13
};
14
15
+
patches = [
16
+
# Fix compatibility with Boost 1.59
17
+
(fetchpatch {
18
+
url = "https://github.com/facebook/folly/commit/29193aca605bb93d82a3c92acd95bb342115f3a4.patch";
19
+
sha256 = "1ixpgq1wjr3i7madx4faw72n17ilc9cr435k5w1x95jr954m9j7b";
20
+
})
21
+
];
22
+
23
nativeBuildInputs = [ autoreconfHook python ];
24
buildInputs = [ libiberty boost libevent double_conversion glog google-gflags openssl ];
25
26
+
postPatch = "cd folly";
27
preBuild = ''
28
patchShebangs build
29
'';