anchor.diff:      # HACK strfile needs to be installed first & in the path. The
       # Makefile should do this for us but haven't gotten it to work
       preBuild = ''
  -      mkdir -p $out/bin $out/share/man/man8 $out/share/man/html8
         (cd fortune/strfile && make && make BINDIR=/bin install)
         export PATH=$out/bin:$PATH
       '';
  
positive.code:     sha256 = "04wjsang8f8kxsifiayklbxaaxmm3vx9rfr91hfbxj4hk8gkqzy1";
      version = "7.1.2";
      makeFlags = [ "BINDIR=/bin"
                    "SCRIPTSDIR=/bin"
                    "FILESDIR=/share/games" ];
      postPatch = ''
        sed -i '1i #include <time.h>' adventure/save.c
  
        for f in $(find . -name pathnames.h); do
          substituteInPlace $f \
            --replace /usr/share/games/fortune $out/share/games \
            --replace /usr/share/games $out/share/games \
            --replace /usr/games $out/bin \
            --replace /usr/libexec $out/libexec \
            --replace /usr/bin/more ${more}/bin/more \
            --replace /usr/share/dict ${dict}/share/dict
        done
        substituteInPlace ching/ching/ching.sh \
          --replace /usr/share $out/share \
          --replace /usr/libexec $out/libexec
  
negative.code:     ] ++ libutil.extraPaths ++ libc.extraPaths;
    };
  
    # HACK to ensure parent directories exist. This emulates GNU
    # install’s -D option. No alternative seems to exist in BSD install.
    install = let binstall = writeText "binstall" ''
      #!/usr/bin/env sh
      for last in $@; do true; done
      mkdir -p $(dirname $last)
      xinstall "$@"
    ''; in netBSDDerivation {
      path = "usr.bin/xinstall";
      version = "7.1.2";
      sha256 = "0nzhyh714m19h61m45gzc5dszkbafp5iaphbp5mza6w020fzf2y8";
  