3
0
Fork 0
forked from mirrors/nixpkgs

mupdf: use thirdparty/patched freeglut for clipboard support

Fixes issue #191164
This commit is contained in:
André-Patrick Bubel 2022-09-14 17:14:43 +02:00 committed by Franz Pletz
parent 7851eb865d
commit ced7a03631

View file

@ -2,6 +2,7 @@
, lib , lib
, fetchurl , fetchurl
, fetchpatch , fetchpatch
, fetchFromGitHub
, copyDesktopItems , copyDesktopItems
, makeDesktopItem , makeDesktopItem
, desktopToDarwinBundle , desktopToDarwinBundle
@ -33,6 +34,16 @@ let
openJpegVersion = with stdenv; openJpegVersion = with stdenv;
lib.versions.majorMinor (lib.getVersion openjpeg); 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 in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -75,7 +86,7 @@ stdenv.mkDerivation rec {
if stdenv.isDarwin then if stdenv.isDarwin then
with darwin.apple_sdk.frameworks; [ GLUT OpenGL ] with darwin.apple_sdk.frameworks; [ GLUT OpenGL ]
else else
[ freeglut libGLU ] [ freeglut-mupdf libGLU ]
) )
; ;
outputs = [ "bin" "dev" "out" "man" "doc" ]; outputs = [ "bin" "dev" "out" "man" "doc" ];