anchor.diff:  
       strictDeps = true;
   
  -    nativeBuildInputs = [ makeWrapper which python3 ];
  +    nativeBuildInputs = [ makeWrapper which python ];
   
       buildInputs = [
         bash
         perl
  -      python3
  +      python
         libapparmor
         libapparmor.python
       ];
  
positive.code:       ncurses
        which
        perl
      ] ++ lib.optional withPython python3;
  
      buildInputs = lib.optional withPerl perl
        ++ lib.optional withPython python3;
  
      # required to build apparmor-parser
      dontDisableStatic = true;
  
      prePatch = prePatchCommon + ''
        substituteInPlace ./libraries/libapparmor/swig/perl/Makefile.am --replace install_vendor install_site
        substituteInPlace ./libraries/libapparmor/swig/perl/Makefile.in --replace install_vendor install_site
        substituteInPlace ./libraries/libapparmor/src/Makefile.am --replace "/usr/include/netinet/in.h" "${lib.getDev stdenv.cc.libc}/include/netinet/in.h"
        substituteInPlace ./libraries/libapparmor/src/Makefile.in --replace "/usr/include/netinet/in.h" "${lib.getDev stdenv.cc.libc}/include/netinet/in.h"
      '';
      inherit patches;
  
  
negative.code: }:
  
  let
    apparmor-version = "3.0.4";
  
    apparmor-meta = component: with lib; {
      homepage = "https://apparmor.net/";
  