@@ -6,7 +6,7 @@
66# Userspace dependencies
77, zlib, libuuid, python3, attr, openssl
88, libtirpc
9−, nfs-utils
9+, nfs-utils, samba
1010, gawk, gnugrep, gnused, systemd
1111, smartmontools, enableMail ? false
1212, sysstat, pkg-config
@@ -55,6 +55,7 @@ let
5555 # And if it's enabled by default, only change that if we explicitly disable python to remove python from the closure
5656 nfs-utils.override (old: { enablePython = old.enablePython or true && enablePython; })
5757 }/bin/exportfs"
58+ substituteInPlace ./lib/libshare/smb.h --replace "/usr/bin/net" "${samba}/bin/net"
5859 substituteInPlace ./config/user-systemd.m4 --replace "/usr/lib/modules-load.d" "$out/etc/modules-load.d"
5960 substituteInPlace ./config/zfs-build.m4 --replace "\$sysconfdir/init.d" "$out/etc/init.d" \
6061 --replace "/etc/default" "$out/etc/default"