anchor.diff:    ] ++ bin-programs;
   
     preCheck = ''
  -    cp ${portmod-rust}/lib/libportmod.so portmod/portmod.so
  +    cp ${portmod-rust}/lib/libportmod.so portmodlib/portmod.so
       export HOME=$(mktemp -d)
     '';
   
  
positive.code: { lib, callPackage, python3Packages, fetchFromGitLab, cacert,
    rustPlatform, bubblewrap, git, perlPackages, imagemagick, fetchurl, fetchzip,
    jre, makeWrapper, tr-patcher, tes3cmd }:
  
  let
    version = "2.0_beta9";
  
    src = fetchFromGitLab {
      owner = "portmod";
      repo = "Portmod";
      rev = "v${version}";
      sha256 = "0a598rb0z6gsdyr4n0lc0yc583njjii07p6vxw75xsh7292vxksc";
    };
  
    portmod-rust = rustPlatform.buildRustPackage rec {
      inherit src version;
      pname = "portmod-rust";
  
      cargoHash = "sha256-7Ce+EIbZuOur7iGOUXNWiXReuZO54LQJu+sJPw1CJGg=";
  
      nativeBuildInputs = [ python3Packages.python ];
  
  
negative.code:     redbaron
      patool
      packaging
      fasteners
    ];
  
    checkInputs = with python3Packages; [
  