procps-ng: apply sanity check patch of SC_ARG_MAX

This commit is contained in:
Edward Tjörnhammar 2020-12-02 14:46:53 +01:00
parent 08ac9ef541
commit edf43c7c6f
No known key found for this signature in database
GPG Key ID: 577898458385603E

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, ncurses, pkgconfig
{ lib, stdenv, fetchurl, fetchpatch, ncurses, pkgconfig
# `ps` with systemd support is able to properly report different
# attributes like unit name, so we want to have it on linux.
@ -22,6 +22,14 @@ stdenv.mkDerivation rec {
sha256 = "1br0g93ysqhlv13i1k4lfbimsgxnpy5rgs4lxfc9rkzdbpbaqplj";
};
patches = [
(fetchpatch {
url = "https://gitlab.com/procps-ng/procps/-/commit/bb96fc42956c9ed926a1b958ab715f8b4a663dec.diff";
sha256 = "0fzsb6ns3fvrszyzsz28qvbmcn135ilr4nwh2z1a0vlpl2fw961z";
name = "sysconf-argmax-sanity.patch";
})
];
buildInputs = [ ncurses ]
++ lib.optional withSystemd systemd;
nativeBuildInputs = [ pkgconfig ];