anchor.diff:    extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs;
   
     extraInstallCommands = ''
  -    mv $out/bin/{${name},caprine}
  +    mv $out/bin/{${pname}-${version},caprine}
   
       mkdir -p $out/share
       "${xorg.lndir}/bin/lndir" -silent "${extracted}/usr/share" "$out/share"
  
positive.code: }:
  
  let
    name = "${pname}-${version}";
    src = fetchurl {
      url = "https://github.com/sindresorhus/caprine/releases/download/v${version}/Caprine-${version}.AppImage";
      name = "Caprine-${version}.AppImage";
      inherit sha256;
    };
    extracted = appimageTools.extractType2 { inherit name src; };
  in
  (appimageTools.wrapType2 {
    inherit name src;
  
    profile = ''
      export LC_ALL=C.UTF-8
  
negative.code:     platforms = [ "x86_64-linux" ];
      mainProgram = "caprine";
    };
  })
  