anchor.diff:        substituteInPlace term.c --replace /usr/share $out/share
       '';
       postInstall = ''
  -      mkdir -p $out/share/misc
         (cd $NETBSDSRCDIR/share/terminfo && make && make BINDIR=/share install)
       '';
       extraPaths = [
  
positive.code:         --replace '-Wl,--warn-shared-textrel' "" \
          --replace '-Wl,-Map=''${_LIB}.so.''${SHLIB_SOVERSION}.map' "" \
          --replace '-Wl,-rpath,''${SHLIBDIR}' ""
      '';
      preInstall = ''
        mkdir -p $out$BINDIR $out$DOCDIR/reference/ref1/make \
                 $out$MANDIR/man1 $out$MANDIR/html1 $out/share/mk
      '';
      postInstall = ''
        (cd $NETBSDSRCDIR/share/mk && make FILESDIR=/share/mk install)
  
negative.code:     sha256 = "04wjsang8f8kxsifiayklbxaaxmm3vx9rfr91hfbxj4hk8gkqzy1";
      version = "7.1.2";
      makeFlags = [ "BINDIR=/bin"
                    "SCRIPTSDIR=/bin" ];
      postPatch = ''
        sed -i '1i #include <time.h>' adventure/save.c
  
        for f in $(find . -name pathnames.h); do
          substituteInPlace $f \
            --replace /usr/share/games $out/share/games \
            --replace /usr/games $out/bin \
            --replace /usr/libexec $out/libexec \
            --replace /usr/bin/more ${less}/bin/less \
            --replace /usr/share/dict ${dict}/share/dict
        done
        substituteInPlace boggle/boggle/bog.h \
          --replace /usr/share/games $out/share/games
        substituteInPlace ching/ching/ching.sh \
          --replace /usr/share $out/share \
          --replace /usr/libexec $out/libexec
  