anchor.diff:  
     hardeningDisable = [ "format" ];
   
  +  patches = [
  +    # musl compat patches, safe everywhere
  +    (fetchpatch {
  +      url = "https://raw.githubusercontent.com/gentoo/musl/5aed405d87dfa92a5cab1596f898e9dea07169b8/sys-libs/gpm/files/gpm-1.20.7-musl-missing-headers.patch";
  +      sha256 = "1g338m6j1sba84wlqp1r6rpabj5nm6ki577hjalg46czg0lfp20h";
  +    })
  +    # Touches same code as glibc fix in postPatch above, but on the non-glibc route
  +    (fetchpatch {
  +      url = "https://raw.githubusercontent.com/gentoo/musl/5aed405d87dfa92a5cab1596f898e9dea07169b8/sys-libs/gpm/files/gpm-1.20.7-musl-portable-sigaction.patch";
  +      sha256 = "0hfdqm9977hd5dpzn05y0a6jbj55w1kp4hd9gyzmg9wslmxni4rg";
  +    })
  +    (fetchpatch {
  +      url = "https://raw.githubusercontent.com/gentoo/musl/5aed405d87dfa92a5cab1596f898e9dea07169b8/sys-libs/gpm/files/gpm-1.20.7-sysmacros.patch";
  +      sha256 = "0lg4l9phvy2n8gy17qsn6zn0qq52vm8g01pgq5kqpr8sd3fb21c2";
  +    })
  +  ];
     preConfigure = ''
       ./autogen.sh
     '';
  
positive.code:   };
  
    postPatch = ''
      sed '1i#include <sys/types.h>' -i src/daemon/open_console.c
      substituteInPlace src/prog/gpm-root.y --replace __sigemptyset sigemptyset
    '';
  
  
negative.code: { stdenv, fetchurl, automake, autoconf, libtool, flex, bison, texinfo, fetchpatch
  
  # Optional Dependencies
  , ncurses ? null
  