anchor.diff:      })
     ];
   
  +  # TODO(@Ericson2314): Separate binaries and libraries
     outputs = [ "out" "dev" ];
   
     buildInputs = stdenv.lib.optional doCheck valgrind;
  
positive.code:     # TODO do this instead
      #"BUILD_STATIC=${if enableStatic then "yes" else "no"}"
      #"BUILD_SHARED=${if enableShared then "yes" else "no"}"
    ]
      # TODO delete and do above
      ++ stdenv.lib.optional (enableStatic) "BUILD_STATIC=yes"
      ++ stdenv.lib.optional (!enableShared) "BUILD_SHARED=no"
      ;
  
    doCheck = false; # tests take a very long time
    checkTarget = "test";
  
    # TODO remove
    postInstall = stdenv.lib.optionalString (!enableStatic) "rm $out/lib/*.a";
  
    meta = with stdenv.lib; {
      description = "Extremely fast compression algorithm";
  
negative.code:     '';
      homepage = https://lz4.github.io/lz4/;
      license = with licenses; [ bsd2 gpl2Plus ];
      platforms = platforms.all;
    };
  }
  