anchor.diff:  { lib
   , stdenv
  -, fetchFromGitHub, fetchpatch
  +, fetchFromGitHub
   , autoreconfHook
   , pkg-config
   , libtasn1, openssl, fuse, glib, libseccomp, json-glib
  
positive.code:     sha256 = "sha256-iy8xjKnPLq1ntZa9x+KtLDznzu6m+1db3NPeGQESUVo=";
    };
  
    patches = [
      (fetchpatch {
        url = "https://patch-diff.githubusercontent.com/raw/stefanberger/swtpm/pull/527.patch";
        sha256 = "sha256-cpKHP15a27ifmmswSgHoNzGPO6TY/ZuJIfM5xLOlqlU=";
      })
    ];
  
    nativeBuildInputs = [
      pkg-config unixtools.netstat expect socat
      perl # for pod2man
      autoreconfHook
    ];
  
    buildInputs = [
  
negative.code:   ];
  
    postPatch = ''
      patchShebangs tests/*
  
      # Makefile tries to create the directory /var/lib/swtpm-localca, which fails
      substituteInPlace samples/Makefile.am \
          --replace 'install-data-local:' 'do-not-execute:'
  