anchor.diff:      sha256 = "1rzrmdrz51p9sy7vlw5qmj8pmqazm7hgcch5yq242mkvrikyln9c";
     };
   
  -  patches = [
  -    ./rtcwake-search-PATH-for-shutdown.patch
  -    (fetchpatch {
  -      name = "CVE-2016-2779.diff";
  -      url = https://github.com/karelzak/util-linux/commit/8e4925016875c6a4f2ab4f833ba66f0fc57396a2.patch;
  -      sha256 = "0kmigkq4s1b1ijrq8vcg2a5cw4qnm065m7cb1jn1q1f4x99ycy60";
  -  })];
  +  patches = [ ./rtcwake-search-PATH-for-shutdown.patch ];
   
     outputs = [ "bin" "dev" "out" "man" ];
   
  
positive.code: 
    makeFlags = "usrbin_execdir=$(bin)/bin usrsbin_execdir=$(bin)/sbin";
  
    # autoreconfHook is required for CVE-2016-2779
    nativeBuildInputs = [ pkgconfig autoreconfHook ];
    # libseccomp is required for CVE-2016-2779
    buildInputs =
      [ zlib pam libseccomp ]
      ++ lib.optional (ncurses != null) ncurses
      ++ lib.optional (systemd != null) systemd
      ++ lib.optional (perl != null) perl;
  
negative.code: { lib, stdenv, fetchurl, pkgconfig, zlib, fetchpatch
  , ncurses ? null, perl ? null, pam, systemd, minimal ? false }:
  
  stdenv.mkDerivation rec {
    name = "util-linux-${version}";
  