From 05605b41d851db2dd17cad31c766b39d34ddd796 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 9 Feb 2017 02:50:48 +0200 Subject: autofs: Some cleanup The --with-openldap and --with-sasl flags passed here are actually wrong as they don't point to the dev outputs of the packages. Anyway, autoconf recognizes the packages as they are in buildInputs. getBin is generally not needed - binaries can always be referred as ${foo}/bin/bar regardless of whether the package is multiple-output. meta.version is unnecessary. --- pkgs/os-specific/linux/autofs/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'pkgs/os-specific/linux/autofs') diff --git a/pkgs/os-specific/linux/autofs/default.nix b/pkgs/os-specific/linux/autofs/default.nix index d2d2c4a3988..a3c08b1b785 100644 --- a/pkgs/os-specific/linux/autofs/default.nix +++ b/pkgs/os-specific/linux/autofs/default.nix @@ -13,17 +13,17 @@ in stdenv.mkDerivation { }; preConfigure = '' - configureFlags="--enable-force-shutdown --enable-ignore-busy --with-path=$PATH --with-openldap=${openldap} --with-sasl=${cyrus_sasl}" + configureFlags="--enable-force-shutdown --enable-ignore-busy --with-path=$PATH" export sssldir="${sssd}/lib/sssd/modules" export HAVE_SSS_AUTOFS=1 - export MOUNT=${lib.getBin utillinux}/bin/mount - export MOUNT_NFS=${lib.getBin nfs-utils}/bin/mount.nfs - export UMOUNT=${lib.getBin utillinux}/bin/umount - export MODPROBE=${lib.getBin utillinux}/bin/modprobe - export E2FSCK=${lib.getBin e2fsprogs}/bin/fsck.ext2 - export E3FSCK=${lib.getBin e2fsprogs}/bin/fsck.ext3 - export E4FSCK=${lib.getBin e2fsprogs}/bin/fsck.ext4 + export MOUNT=${utillinux}/bin/mount + export MOUNT_NFS=${nfs-utils}/bin/mount.nfs + export UMOUNT=${utillinux}/bin/umount + export MODPROBE=${utillinux}/bin/modprobe + export E2FSCK=${e2fsprogs}/bin/fsck.ext2 + export E3FSCK=${e2fsprogs}/bin/fsck.ext3 + export E4FSCK=${e2fsprogs}/bin/fsck.ext4 ''; installPhase = '' @@ -37,7 +37,6 @@ in stdenv.mkDerivation { nativeBuildInputs = [ flex bison ]; meta = { - inherit version; description = "Kernel-based automounter"; homepage = http://www.linux-consulting.com/Amd_AutoFS/autofs.html; license = stdenv.lib.licenses.gpl2; -- cgit 1.4.1