psmisc: fall back to kill when pidfd_send_signal fails

This commit is contained in:
Emil Karlson 2022-12-02 09:44:13 +02:00 committed by Rick van Schijndel
parent 9e4a15be2c
commit d71de0eca9

View File

@ -1,4 +1,4 @@
{lib, stdenv, fetchFromGitLab, autoconf, automake, gettext, ncurses}: {lib, stdenv, fetchFromGitLab, fetchpatch, autoconf, automake, gettext, ncurses}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "psmisc"; pname = "psmisc";
@ -11,6 +11,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-02jvRPqN8DS30ID42hQFu400NoFC5QiH5YA3NB+EoFI="; sha256 = "sha256-02jvRPqN8DS30ID42hQFu400NoFC5QiH5YA3NB+EoFI=";
}; };
patches = [
# Upstream patch to be released in the next version
(fetchpatch {
name = "fallback-to-kill.diff";
url = "https://gitlab.com/psmisc/psmisc/-/commit/6892e321e7042e3df60a5501a1c59d076e8a856f.patch";
sha256 = "sha256-3uk1KXEOqAxpHWBORUw5+dR5s/Z55JJs5tuBZlTdjlo=";
excludes = [ "ChangeLog" ];
})
];
nativeBuildInputs = [ autoconf automake gettext ]; nativeBuildInputs = [ autoconf automake gettext ];
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];