anchor.diff:  , withImportd ? true
   , withCryptsetup ? true
   
  -# name argument
  +  # name argument
   , pname ? "systemd"
   
   
  -, libxslt, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_45
  +, libxslt
  +, docbook_xsl
  +, docbook_xml_dtd_42
  +, docbook_xml_dtd_45
   }:
   
   assert withResolved -> (libgcrypt != null && libgpgerror != null);
   assert withImportd ->
  -  ( curl.dev != null && zlib != null && xz != null && libgcrypt != null
  +(curl.dev != null && zlib != null && xz != null && libgcrypt != null
     && gnutar != null && gnupg != null);
   
   assert withCryptsetup ->
  -  ( cryptsetup != null );
  -
  +(cryptsetup != null);
   let
     version = "246.6";
  -in stdenv.mkDerivation {
  +in
  +stdenv.mkDerivation {
     inherit version pname;
   
     # We use systemd/systemd-stable for src, and ship NixOS-specific patches inside nixpkgs directly
  
positive.code: { stdenv, lib, fetchFromGitHub
  , buildPackages
  , ninja, meson, m4, pkgconfig, coreutils, gperf, getent
  , patchelf, perl, glibcLocales, glib, substituteAll
  , gettext, python3Packages
  
  # Mandatory dependencies
  , libcap
  , utillinux
  , kbd
  , kmod
  
  # Optional dependencies
  , pam, cryptsetup, lvm2, audit, acl
  , lz4, libgcrypt, libgpgerror, libidn2
  , curl, gnutar, gnupg, zlib
  , xz, libuuid, libffi
  , libapparmor, intltool
  , bzip2, pcre2, e2fsprogs
  , linuxHeaders ? stdenv.cc.libc.linuxHeaders
  , gnu-efi
  , iptables
  , withSelinux ? false, libselinux
  , withLibseccomp ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) libseccomp.meta.platforms, libseccomp
  , withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms, kexectools
  , bashInteractive
  
  , withResolved ? true
  
negative.code:   outputs = [ "out" "man" "dev" ];
  
    nativeBuildInputs =
      [
        pkgconfig
        gperf
        ninja
        meson
        coreutils # meson calls date, stat etc.
        glibcLocales
        patchelf
        getent
        m4
        perl # to patch the libsystemd.so and remove dependencies on aarch64
  
        intltool
        gettext
  
        libxslt
        docbook_xsl
        docbook_xml_dtd_42
        docbook_xml_dtd_45
        (buildPackages.python3Packages.python.withPackages (ps: with ps; [ python3Packages.lxml ]))
      ];
  
    buildInputs =
      [
        acl
        audit
        bzip2
        cryptsetup
        curl.dev
        glib
        iptables
        kmod
        libapparmor
        libcap
        libffi
        libgcrypt
        libgpgerror
        libidn2
        libuuid
        linuxHeaders
        lz4
        pam
        pcre2
        xz
      ] ++ lib.optional withKexectools kexectools
      ++ lib.optional withLibseccomp libseccomp
      ++ lib.optional withEfi gnu-efi
      ++ lib.optional withSelinux libselinux
      ++ lib.optional withCryptsetup cryptsetup.dev
    ;
  
    #dontAddPrefix = true;
  
  