anchor.diff:      ./autogen.sh
   
       # Fix the python site-packages install directory
  -    sed -i "s,\(PYTHON\(\|_EXEC\)_PREFIX=\).*,\1'$lib',g" configure
  -
  -    # Fix the PYTHONPATH for installing ceph-detect-init to $out
  -    mkdir -p "$(toPythonPath $out)"
  -    export PYTHONPATH="$(toPythonPath $out):$PYTHONPATH"
  +    sed -i "s,\$PYTHON\(_EXEC\)\?_PREFIX,$lib,g" configure
     '';
   
     configureFlags = [
  
positive.code:     done
    '';
  
    meta = with stdenv.lib; {
      description = "Distributed storage system";
      homepage = https://ceph.com/;
  
negative.code:     (cd src/gmock; make -j $NIX_BUILD_CORES)
    '';
  
    preInstall = ''
      installFlagsArray+=(
        "sysconfdir=$out/etc"
        "submandir=$out/etc/cron.hourly"
        "localstatedir=$TMPDIR"
      )
    '';
  
    outputs = [ "out" "lib" ];
  
    postInstall = ''
      # Bring in lib as a native build input
      mkdir -p $out/nix-support
      echo "$lib" > $out/nix-support/propagated-native-build-inputs
    '' + optionalString (versionAtLeast version "10.1.0") ''
      # Move all of the python libraries to $lib
      mv $(toPythonPath $out)/* $(toPythonPath $lib)
      rm -rf $out/lib
    '' + optionalString (versionOlder version "10.1.0") ''
      # Fix the python library loading
      find $lib/lib -name \*.pyc -or -name \*.pyd -exec rm {} \;
      for PY in $(find $lib/lib -name \*.py); do
  