anchor.diff:      make oldconfig
     '';
   
  -  makeFlags = [ "PREFIX=$(out)" ] ++ lib.optional enableStatic "LDFLAGS=--static";
  +  makeFlags = [ "PREFIX=$(out)/bin" ] ++ lib.optional enableStatic "LDFLAGS=--static";
  +
  +  installTargets = "install_flat";
   
     # tests currently (as of 0.8.0) get stuck in an infinite loop...
     # ...this is fixed in latest git, so doCheck can likely be enabled for next release
     # see https://github.com/landley/toybox/commit/b928ec480cd73fd83511c0f5ca786d1b9f3167c3
     #doCheck = true;
  +  checkInputs = [ which ]; # used for tests with checkFlags = [ "DEBUG=true" ];
     checkTarget = "tests";
   
     meta = with stdenv.lib; {
  
positive.code: {
    stdenv, lib, fetchFromGitHub, buildPackages,
    enableStatic ? false,
    enableMinimal ? false,
    extraConfig ? ""
  
negative.code: 
    buildInputs = lib.optionals enableStatic [ stdenv.cc.libc stdenv.cc.libc.static ];
  
    postPatch = "patchShebangs .";
  
    inherit extraConfig;
    passAsFile = [ "extraConfig" ];
  