anchor.diff:      install bin/sbt $out/bin
   
       wrapProgram $out/bin/sbt --prefix PATH : ${lib.makeBinPath [ which curl ]}
  +
  +    runHook postInstall
     '';
   
     doInstallCheck = true;
  
positive.code:   nativeBuildInputs = [ makeWrapper ];
  
    installPhase = ''
      mkdir -p $out/bin
  
      substituteInPlace bin/sbt --replace 'declare java_cmd="java"' 'declare java_cmd="${jdk}/bin/java"'
  
negative.code: 
  stdenv.mkDerivation rec {
    pname = "sbt-extras";
    rev = "2c582cdbb37dd487bf2140010ddd2e20f3c1394e";
    version = "2021-03-03";
  
    src = fetchFromGitHub {
      owner = "paulp";
      repo = "sbt-extras";
      inherit rev;
      sha256 = "1j4j46gzw05bis7akvzfdj36xdwxcabq66wyf917z8vsy31vvajp";
    };
  
    dontBuild = true;
  