anchor.diff:  , stdenv
   , installShellFiles
   , fetchFromGitHub
  +, freetype
   , gumbo
   , harfbuzz
   , jbig2dec
  
positive.code:     sha256 = "sha256-F71JXgYaWAye+nlSrZvGjJ4ucvHTx3tPZHRC5QI4QiU=";
    };
  
    buildInputs = [ gumbo harfbuzz jbig2dec mupdf mujs openjpeg qt3d qtbase ];
  
    nativeBuildInputs = [ installShellFiles wrapQtAppsHook qmake ];
  
    postPatch = ''
      substituteInPlace pdf_viewer/main.cpp \
        --replace "/usr/share/sioyek" "$out/share" \
        --replace "/etc/sioyek" "$out/etc"
    '';
  
    postInstall = ''
      install -Dm644 tutorial.pdf $out/share/tutorial.pdf
      cp -r pdf_viewer/shaders $out/share/
      install -Dm644 -t $out/etc/ pdf_viewer/{keys,prefs}.config
  
negative.code:     homepage = "https://sioyek.info/";
      changelog = "https://github.com/ahrm/sioyek/releases";
      license = licenses.gpl3Only;
      platforms = platforms.linux ++ platforms.darwin;
      maintainers = [ maintainers.podocarp ];
    };
  }
  