anchor.diff:        swig
         ncurses
         which
  -    ];
  -
  -    buildInputs = [
  +      perl
  +    ];
  +
  +    buildInputs = stdenv.lib.optionals (!stdenv.isCross) [
         perl
         python
       ];
  
positive.code:     inherit patches;
  
      postPatch = "cd ./libraries/libapparmor";
      configureFlags = "--with-python --with-perl";
  
      outputs = [ "out" "python" ];
  
      postInstall = ''
        mkdir -p $python/lib
        mv $out/lib/python* $python/lib/
      '';
  
negative.code: , swig
  , ncurses
  , pam
  , buildPackages
  }:
  
  let
  