From ced7a03631b73dd816eb9db8529171d8a648fdc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Patrick=20Bubel?= Date: Wed, 14 Sep 2022 17:14:43 +0200 Subject: [PATCH] mupdf: use thirdparty/patched freeglut for clipboard support Fixes issue #191164 --- pkgs/applications/misc/mupdf/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/mupdf/default.nix b/pkgs/applications/misc/mupdf/default.nix index 2010268eade1..ab91e1d70899 100644 --- a/pkgs/applications/misc/mupdf/default.nix +++ b/pkgs/applications/misc/mupdf/default.nix @@ -2,6 +2,7 @@ , lib , fetchurl , fetchpatch +, fetchFromGitHub , copyDesktopItems , makeDesktopItem , desktopToDarwinBundle @@ -33,6 +34,16 @@ let openJpegVersion = with stdenv; lib.versions.majorMinor (lib.getVersion openjpeg); + freeglut-mupdf = freeglut.overrideAttrs (old: rec { + pname = "freeglut-mupdf"; + version = "3.0.0-r${src.rev}"; + src = fetchFromGitHub { + owner = "ArtifexSoftware"; + repo = "thirdparty-freeglut"; + rev = "13ae6aa2c2f9a7b4266fc2e6116c876237f40477"; + hash = "sha256-0fuE0lm9rlAaok2Qe0V1uUrgP4AjMWgp3eTbw8G6PMM="; + }; + }); in stdenv.mkDerivation rec { @@ -75,7 +86,7 @@ stdenv.mkDerivation rec { if stdenv.isDarwin then with darwin.apple_sdk.frameworks; [ GLUT OpenGL ] else - [ freeglut libGLU ] + [ freeglut-mupdf libGLU ] ) ; outputs = [ "bin" "dev" "out" "man" "doc" ];