26 stdenv.mkDerivation rec {
31 url = "mirror://kernel/linux/daemons/autofs/v5/autofs-${version}.tar.xz";
32 sha256 = "sha256-h+avagN5S5Ri6lGXgeUOfSO198ks1Z4RQshdJJOzwks=";
36 url = "mirror://kernel/linux/daemons/autofs/v5/patches-5.2.0/autofs-5.1.9-update-configure.patch";
37 hash = "sha256-BomhNw+lMHcgs5gQlzapZ6p/Ji3gJUVkrLpZssBmwbg=";
40 url = "mirror://kernel/linux/daemons/autofs/v5/patches-5.2.0/autofs-5.1.9-fix-ldap_parse_page_control-check.patch";
41 hash = "sha256-W757LU9r9kuzLeThif2a1olRtxNrJy5suemLS7yfbIU=";
44 url = "mirror://kernel/linux/daemons/autofs/v5/patches-5.2.0/autofs-5.1.9-fix-crash-in-make_options_string.patch";
45 hash = "sha256-YjTdJ50iNhJ2UjFdrKYEFNt04z0PfmElbFa4GuSskLA=";
48 url = "mirror://kernel/linux/daemons/autofs/v5/patches-5.2.0/autofs-5.1.9-Fix-incompatible-function-pointer-types-in-cyrus-sasl-module.patch";
49 hash = "sha256-erLlqZtVmYqUOsk3S7S50yA0VB8Gzibsv+X50+gcA58=";
54 configureFlags="--enable-force-shutdown --enable-ignore-busy --with-path=$PATH --with-libtirpc"
55 export sssldir="${sssd}/lib/sssd/modules"
56 export HAVE_SSS_AUTOFS=1
58 export MOUNT=${mount}/bin/mount
59 export MOUNT_NFS=${nfs-utils}/bin/mount.nfs
60 export UMOUNT=${umount}/bin/umount
61 export MODPROBE=${kmod}/bin/modprobe
62 export E2FSCK=${e2fsprogs}/bin/fsck.ext2
63 export E3FSCK=${e2fsprogs}/bin/fsck.ext3
64 export E4FSCK=${e2fsprogs}/bin/fsck.ext4
66 unset STRIP # Makefile.rules defines a usable STRIP only without the env var.
70 make install SUBDIRS="lib daemon modules man" # all but samples
71 #make install SUBDIRS="samples" # impure!
96 description = "Kernel-based automounter";
97 mainProgram = "automount";
98 homepage = "https://www.kernel.org/pub/linux/daemons/autofs/";
99 license = lib.licenses.gpl2Plus;
100 executables = [ "automount" ];
101 platforms = lib.platforms.linux;