anchor.diff:      ./fix-gimp-plugin-path.patch
     ];
   
  -  unpackPhase = ''
  -    cp -r ${gmic} gmic
  -    ln -s ${gmic-community} gmic-community
  -    cp -r ${gmic_qt} gmic_qt
  -    chmod -R +w gmic gmic_qt
  -    ln -s ${CImg} CImg
  -
  -    cp ${gmic_stdlib} gmic/src/gmic_stdlib.h
  -
  -    cd gmic_qt
  -  '';
  -
     nativeBuildInputs = [
       cmake
       pkg-config
  
positive.code: { lib
  , mkDerivation
  , fetchurl
  , fetchpatch
  , variant ? "standalone"
  , fetchFromGitHub
  , cmake
  
negative.code:   meta = with lib; {
      description = variants.${variant}.description;
      homepage = "http://gmic.eu/";
      license = licenses.gpl3Plus;
      platforms = platforms.unix;
    };
  }
  