anchor.diff:      makeWrapper "${ghostscript}/bin/gs" "$out/bin/gs" \
         --prefix LD_LIBRARY_PATH ":" "$out/lib" \
         --prefix PATH ":" "$out/bin"
  -    '';
  +
  +    runHook postInstall
  +  '';
   
     meta = with lib; {
       description = "CUPS Linux drivers for Canon printers";
  
positive.code:   inherit version;
    src = src_canon;
  
    phases = [ "unpackPhase" "installPhase" ];
  
    postUnpack = ''
      (cd $sourceRoot; tar -xzf Sources/cndrvcups-common-${commonVer}-1.tar.gz)
      (cd $sourceRoot; tar -xzf Sources/cndrvcups-lb-${version}-1.tar.gz)
    '';
  
    nativeBuildInputs = [ makeWrapper unzip autoreconfHook libtool ];
  
    buildInputs = [ cups zlib ];
  
    installPhase = ''
      ##
      ## cndrvcups-common buildPhase
      ##
  
negative.code: { lib
  , stdenv
  , fetchurl
  , unzip
  , autoconf
  , automake
  , libtool
  , makeWrapper
  , cups
  , ghostscript
  , pkgsi686Linux
  , zlib
  }:
  
  let
  
    i686_NIX_GCC = pkgsi686Linux.callPackage ({ gcc }: gcc) { };
    i686_libxml2 = pkgsi686Linux.callPackage ({ libxml2 }: libxml2) { };
  
    commonVer = "4.10";
    version = "3.70";
    dl = "8/0100007658/08";
  
    versionNoDots = builtins.replaceStrings [ "." ] [ "" ] version;
    src_canon = fetchurl {
      url = "http://gdlp01.c-wss.com/gds/${dl}/linux-UFRII-drv-v${versionNoDots}-uken-05.tar.gz";
      sha256 = "0424lvyrsvsb94qga4p4ldis7f714c5yw5ydv3f84mdl2a7papg0";
  