Permalink
Browse files

nfs-utils: Get rid of runtime dependency on kerberos.dev

  • Loading branch information...
edolstra committed Oct 11, 2018
1 parent edff37b commit 8beb1e26e05eb40c2ebf1a7907f41d612c2350b3
Showing with 14 additions and 8 deletions.
  1. +14 −8 pkgs/os-specific/linux/nfs-utils/default.nix
@@ -5,14 +5,9 @@
let
statdPath = lib.makeBinPath [ systemd utillinux coreutils ];
in
# Not nice; feel free to find a nicer solution.
kerberosEnv = buildEnv {
name = "kerberos-env-${kerberos.version}";
paths = with lib; [ (getDev kerberos) (getLib kerberos) ];
};
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
name = "nfs-utils-${version}";
version = "2.3.3";
@@ -34,10 +29,19 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true;
preConfigure =
''
substituteInPlace configure \
--replace '$dir/include/gssapi' ${lib.getDev kerberos}/include/gssapi \
--replace '$dir/bin/krb5-config' ${lib.getDev kerberos}/bin/krb5-config
'';
#configureScript = "bash -x configure";
configureFlags =
[ "--enable-gss"
"--with-statedir=/var/lib/nfs"
"--with-krb5=${kerberosEnv}"
"--with-krb5=${lib.getLib kerberos}"
"--with-systemd=${placeholder "out"}/etc/systemd/system"
"--enable-libmount-mount"
"--with-pluginpath=${placeholder "lib"}/lib/libnfsidmap" # this installs libnfsidmap
@@ -97,6 +101,8 @@ in stdenv.mkDerivation rec {
# One test fails on mips.
doCheck = !stdenv.isMips;
disallowedReferences = [ (lib.getDev kerberos) ];
meta = with stdenv.lib; {
description = "Linux user-space NFS utilities";

0 comments on commit 8beb1e2

Please sign in to comment.