anchor.diff:      description = "Library providing C and Python (libcURL like) API for downloading linux repository metadata and packages";
       homepage = "https://rpm-software-management.github.io/librepo/";
       license = licenses.lgpl2Plus;
  -    platforms = platforms.linux;
  +    platforms = platforms.linux ++ platforms.darwin;
       maintainers = with maintainers; [ copumpkin ];
     };
   }
  
positive.code: 
    cmakeFlags = [
      "-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}"
    ];
  
    postFixup = ''
      moveToOutput "lib/${python.libPrefix}" "$py"
  
negative.code:     libxml2
      glib
      openssl
      curl
      check
      gpgme
    ]
    # zchunk currently has issues compiling in darwin, fine in linux
    ++ stdenv.lib.optional stdenv.isLinux zchunk;
  
    # librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
    propagatedBuildInputs = [
  