@@ -1,5 +1,5 @@
1{ lib, stdenv, fetchurl, makeWrapper, pkg-config, which, maven, cmake, jre, jdk8, bash
1{ lib, stdenv, fetchurl, makeWrapper, pkg-config, which, maven, cmake, jre, jdk8, bash
2−, coreutils, glibc, protobuf2_5, fuse, snappy, zlib, bzip2, openssl, openssl_1_0_2
2+, coreutils, glibc, protobuf2_5, fuse, snappy, zlib, bzip2, openssl, openssl_1_0_2, fetchpatch, libtirpc
@@ -38,8 +38,19 @@ let
40 nativeBuildInputs = [ maven cmake pkg-config ];
40 nativeBuildInputs = [ maven cmake pkg-config ];
41− buildInputs = [ fuse snappy zlib bzip2 opensslPkg protobuf2_5 ];
41+ buildInputs = [ fuse snappy zlib bzip2 opensslPkg protobuf2_5 libtirpc ];
42+ NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
43+ NIX_LDFLAGS = [ "-ltirpc" ];
42 # most of the hardcoded pathes are fixed in 2.9.x and 3.0.0, this list of patched files might be reduced when 2.7.x and 2.8.x will be deprecated
45 # most of the hardcoded pathes are fixed in 2.9.x and 3.0.0, this list of patched files might be reduced when 2.7.x and 2.8.x will be deprecated
49+ url = "https://patch-diff.githubusercontent.com/raw/apache/hadoop/pull/2886.patch";
50+ sha256 = "1fim1d8va050za5i8a6slphmx015fzvhxkc2wi4rwg7kbj31sv0r";
43 postPatch = ''
54 postPatch = ''
44 for file in hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HardLink.java \
55 for file in hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HardLink.java \
45 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java \
56 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java \