aboutsummaryrefslogtreecommitdiff
path: root/pkgs/os-specific/linux/nfs-utils
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-12-19 15:18:24 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-12-19 15:18:24 +0100
commit9b54a001601a4eaf211e411451f48ec78027378f (patch)
tree62f1d349cbfcb23467195d9f6f02d709b331674b /pkgs/os-specific/linux/nfs-utils
parent4378dc92d5422a1f7bfb41869823f2a56f207e81 (diff)
parent13e6a5c56103cad7aa5ecdd8888aa9172d20a6ed (diff)
Merge #29785: curl: enable kerberos
Diffstat (limited to 'pkgs/os-specific/linux/nfs-utils')
-rw-r--r--pkgs/os-specific/linux/nfs-utils/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/nfs-utils/default.nix b/pkgs/os-specific/linux/nfs-utils/default.nix
index e52174c0901..904dae55c9c 100644
--- a/pkgs/os-specific/linux/nfs-utils/default.nix
+++ b/pkgs/os-specific/linux/nfs-utils/default.nix
@@ -1,10 +1,17 @@
{ stdenv, fetchurl, lib, pkgconfig, utillinux, libcap, libtirpc, libevent, libnfsidmap
, sqlite, kerberos, kmod, libuuid, keyutils, lvm2, systemd, coreutils, tcp_wrappers
+, buildEnv
}:
let
statdPath = lib.makeBinPath [ systemd utillinux coreutils ];
+ # 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 {
name = "nfs-utils-${version}";
version = "2.1.1";
@@ -26,7 +33,7 @@ in stdenv.mkDerivation rec {
configureFlags =
[ "--enable-gss"
"--with-statedir=/var/lib/nfs"
- "--with-krb5=${kerberos}"
+ "--with-krb5=${kerberosEnv}"
"--with-systemd=$(out)/etc/systemd/system"
"--enable-libmount-mount"
]