forked from mirrors/nixpkgs
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ stdenv, fetchurl, which, autoconf, automake, flex, yacc,
|
|
kernel, glibc, ncurses, perl, krb5 }:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "openafs-1.6.6-${kernel.version}";
|
|
|
|
src = fetchurl {
|
|
url = http://www.openafs.org/dl/openafs/1.6.6/openafs-1.6.6-src.tar.bz2;
|
|
sha256 = "0xfa64hvz0avp89zgz8ksmp24s6ns0z3103m4mspshhhdlikypk3";
|
|
};
|
|
|
|
buildInputs = [ autoconf automake flex yacc ncurses perl which ];
|
|
|
|
preConfigure = ''
|
|
ln -s ${kernel.dev}/lib/modules/*/build $TMP/linux
|
|
|
|
patchShebangs .
|
|
for i in `grep -l -R '/usr/\(include\|src\)' .`; do
|
|
echo "Patch /usr/include and /usr/src in $i"
|
|
substituteInPlace $i \
|
|
--replace "/usr/include" "${glibc}/include" \
|
|
--replace "/usr/src" "$TMP"
|
|
done
|
|
|
|
./regen.sh
|
|
|
|
export KRB5_CONFIG=${krb5}/bin/krb5-config
|
|
|
|
configureFlagsArray=(
|
|
"--with-linux-kernel-build=$TMP/linux"
|
|
"--with-krb5"
|
|
"--sysconfdir=/etc/static"
|
|
)
|
|
'';
|
|
|
|
meta = {
|
|
description = "Open AFS client";
|
|
homepage = http://www.openafs.org;
|
|
license = stdenv.lib.licenses.ipl10;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.z77z ];
|
|
};
|
|
}
|