anchor.diff:  { lib, stdenv
   , fetchurl
   , autoreconfHook
  -, docbook_xml_dtd_412
   , docbook_xml_dtd_45
   , docbook-xsl-nons
   , which
  
positive.code:   nativeBuildInputs = [
      autoreconfHook
      libxml2
      # Remove 4.1.2 again once the following is merged
      # https://github.com/flatpak/flatpak/pull/4102
      docbook_xml_dtd_412
      docbook_xml_dtd_45
      docbook-xsl-nons
      which
  
negative.code: 
  stdenv.mkDerivation rec {
    pname = "flatpak";
    version = "1.10.2";
  
    # TODO: split out lib once we figure out what to do with triggerdir
    outputs = [ "out" "dev" "man" "doc" "devdoc" "installedTests" ];
  
    src = fetchurl {
      url = "https://github.com/flatpak/flatpak/releases/download/${version}/${pname}-${version}.tar.xz";
      sha256 = "sha256-2xUnOdBy+P8pnk6IjYljobRTjaexDguGUlvkOPLh3eQ=";
    };
  
    patches = [
  