anchor.diff:        sha256 = "0yyaqz8jlmn1bm37arggprqz0njb4lhjni2d9c8qfqj0kll0bam0";
       })
     ];
  +
  +  python = python3.withPackages (ps: with ps; [ setuptools ]);
   
     # Set to `true` after the next FIXME gets fixed or this gets some
     # common derivation infra. Too much copy-paste to fix one by one.
  
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:     platforms = platforms.linux;
    };
  
    apparmor-sources = fetchFromGitLab {
      owner = "apparmor";
      repo = "apparmor";
      rev = "v${apparmor-version}";
      sha256 = "1a217j28rgfq4lsmpn0wv1xgmdr9ba8iysv9i6q477kj6z77zrb9";
    };
  
    aa-teardown = writeShellScript "aa-teardown" ''
  