@@ -3,39 +3,19 @@
33
44stdenv.mkDerivation rec {
55 name = "openafs-${version}-${kernel.version}";
6− version = "1.6.21.1";
6+ version = "1.6.22.1";
77
88 src = fetchurl {
99 url = "http://www.openafs.org/dl/openafs/${version}/openafs-${version}-src.tar.bz2";
10− sha256 = "0nisxnfl8nllcfmi7mxj1gngkpxd4jp1wapbkhz07qwqynq9dn5f";
10+ sha256 = "19nfbksw7b34jc3mxjk7cbz26zg9k5myhzpv2jf0fnmznr47jqaw";
1111 };
1212
13− nativeBuildInputs = [ autoconf automake flex yacc perl which ];
13+ nativeBuildInputs = [ autoconf automake flex yacc perl which ] ++ kernel.moduleBuildDependencies;
1414
1515 buildInputs = [ ncurses ];
1616
1717 hardeningDisable = [ "pic" ];
1818
19− patches = [
20− (fetchpatch {
21− name = "fix-stdint-include.patch";
22− url = "http://git.openafs.org/?p=openafs.git;a=patch;h=c193e5cba18273a062d4162118c7055b54f7eb5e";
23− sha256 = "1yc4gygcazwsslf6mzk1ai92as5jbsjv7212jcbb2dw83jydhc09";
24− })
25− # linux 4.14
26− (fetchpatch {
27− name = "test-for-__vfs_write-rather-than-__vfs_read.patch";
28− url = "http://git.openafs.org/?p=openafs.git;a=patch;h=929e77a886fc9853ee292ba1aa52a920c454e94b";
29− sha256 = "0g4jxqzvyrjy2q7mhxc5ikhypj3ljw1wri4lipzm66crsvycp9x5";
30− })
31− # linux 4.14
32− (fetchpatch {
33− name = "use-kernel_read-kernel_write-when-__vfs-variants-are-unavailable.patch";
34− url = "http://git.openafs.org/?p=openafs.git;a=patch;h=5ee516b3789d3545f3d78fb3aba2480308359945";
35− sha256 = "1vx55qb120y857mn1l00i58fj9cckschp86ch3g6hqrdc5q5bxv2";
36− })
37− ];
38−
3919 preConfigure = ''
4020 ln -s "${kernel.dev}/lib/modules/"*/build $TMP/linux
4121