@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, pkgconfig, intltool, gperf, libcap, kmod
1+{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, intltool, gperf, libcap, kmod
22, zlib, xz, pam, acl, cryptsetup, libuuid, m4, utillinux, libffi
33, glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libapparmor, audit, lz4
44, kexectools, libmicrohttpd, linuxHeaders ? stdenv.cc.libc.linuxHeaders, libseccomp
@@ -20,6 +20,14 @@ stdenv.mkDerivation rec {
2020 sha256 = "021b7filp1dlhic1iv54b821w7mj5595njvzns939pmn636ry4m5";
2121 };
2222
23+ patches = [
24+ # Fixes tty issues, see #18158. Remove when upgrading to systemd 232.
25+ (fetchpatch {
26+ url = "https://github.com/systemd/systemd/commit/bd64d82c1c0e3fe2a5f9b3dd9132d62834f50b2d.patch";
27+ sha256 = "1gc9fxdlnfmjhbi77xfwcb5mkhryjsdi0rmbh2lq2qq737iyqqwm";
28+ })
29+ ];
30+
2331 /* gave up for now!
2432 outputs = [ "out" "libudev" "doc" ]; # maybe: "dev"
2533 # note: there are many references to ${systemd}/...