You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. { stdenv, fetchFromGitHub, cmake, pkgconfig, vala, gtk3, libgee, fetchpatch
  2. , poppler, libpthreadstubs, gstreamer, gst-plugins-base, librsvg, pcre, gobject-introspection, wrapGAppsHook }:
  3. stdenv.mkDerivation rec {
  4. name = "${product}-${version}";
  5. product = "pdfpc";
  6. version = "4.3.4";
  7. src = fetchFromGitHub {
  8. repo = product;
  9. owner = product;
  10. rev = "v${version}";
  11. sha256 = "07aafsm4jzdgpahz83p0ajv40hry7gviyadqi13ahr8xdhhwy2sd";
  12. };
  13. nativeBuildInputs = [
  14. cmake pkgconfig vala
  15. # For setup hook
  16. gobject-introspection
  17. wrapGAppsHook
  18. ];
  19. buildInputs = [ gstreamer gst-plugins-base gtk3 libgee poppler
  20. libpthreadstubs librsvg pcre ];
  21. cmakeFlags = stdenv.lib.optionalString stdenv.isDarwin "-DMOVIES=OFF";
  22. patches = [
  23. # Fix build vala 0.46
  24. (fetchpatch {
  25. url = "https://github.com/pdfpc/pdfpc/commit/bbc16b97ecbdcdd22c2dc827a5c0e8b569073312.patch";
  26. sha256 = "0wi1rqcvg65cxnxvmvavcvghqyksnpijq1p91m57jaby3hb0pdcy";
  27. })
  28. ];
  29. meta = with stdenv.lib; {
  30. description = "A presenter console with multi-monitor support for PDF files";
  31. homepage = https://pdfpc.github.io/;
  32. license = licenses.gpl2Plus;
  33. maintainers = with maintainers; [ pSub ];
  34. platforms = platforms.unix;
  35. };
  36. }