anchor.diff:      make lib
     '';
   
  -  installPhase = let
  -    libSuff = stdenv.hostPlatform.extensions.sharedLibrary;
  -  in ''
  +  installPhase = ''
       mkdir -p $out/lib $out/bin $out/include
       ${if stdenv.isDarwin then ''
         cp liblinear.so.3 $out/lib/liblinear.3.dylib
         ln -s $out/lib/liblinear.3.dylib $out/lib/liblinear.dylib
  -      install_name_tool -id liblinear.3.dylib $out/lib/liblinear.3.dylib
       '' else ''
         cp liblinear.so.3 $out/lib/liblinear.so.3
         ln -s $out/lib/liblinear.so.3 $out/lib/liblinear.so
  
positive.code:     cp linear.h $out/include
    '';
  
    meta = with stdenv.lib; {
      description = "A library for large linear classification";
      homepage = https://www.csie.ntu.edu.tw/~cjlin/liblinear/;
  
negative.code: { stdenv, fetchurl, fixDarwinDylibNames }:
  
  stdenv.mkDerivation rec {
    pname = "liblinear";
  