anchor.diff:    };
   
     apparmor-profiles = stdenv.mkDerivation {
  -    name = "apparmor-profiles-${apparmor-version}";
  +    pname = "apparmor-profiles";
  +    version = apparmor-version;
  +
       src = apparmor-sources;
   
       nativeBuildInputs = [ which ];
   
  -    postPatch = "cd ./profiles";
  +    postPatch = ''
  +      cd ./profiles
  +    '';
  +
       installFlags = [ "DESTDIR=$(out)" "EXTRAS_DEST=$(out)/share/apparmor/extra-profiles" ];
   
       inherit doCheck;
  
positive.code:   prePatchCommon = ''
      chmod a+x ./common/list_capabilities.sh ./common/list_af_names.sh
      patchShebangs ./common/list_capabilities.sh ./common/list_af_names.sh
      substituteInPlace ./common/Make.rules --replace "/usr/bin/pod2man" "${buildPackages.perl}/bin/pod2man"
      substituteInPlace ./common/Make.rules --replace "/usr/bin/pod2html" "${buildPackages.perl}/bin/pod2html"
      substituteInPlace ./common/Make.rules --replace "/usr/include/linux/capability.h" "${linuxHeaders}/include/linux/capability.h"
      substituteInPlace ./common/Make.rules --replace "/usr/share/man" "share/man"
    '';
  
    patches = lib.optionals stdenv.hostPlatform.isMusl [
  
negative.code:   };
  
    apparmor-bin-utils = stdenv.mkDerivation {
      pname = "apparmor-bin-utils";
      version = apparmor-version;
  
      src = apparmor-sources;
  
      nativeBuildInputs = [
  