Merge pull request #280285 from dotlambda/mupdf-headless-init

mupdf-headless: init at 1.23.6
This commit is contained in:
Robert Schütz
2024-01-12 15:27:33 +01:00
committed by GitHub
4 changed files with 12 additions and 7 deletions
+3 -2
View File
@@ -98,9 +98,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ]
++ lib.optional (enableGL || enableX11) copyDesktopItems
++ lib.optional (stdenv.isDarwin && (enableGL || enableX11)) desktopToDarwinBundle
++ lib.optionals (enableCxx || enablePython) [ python3 python3.pkgs.setuptools python3.pkgs.libclang ]
++ lib.optionals (enablePython) [ which swig ]
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle fixDarwinDylibNames xcbuild ];
++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames xcbuild ];
buildInputs = [ freetype harfbuzz openjpeg jbig2dec libjpeg gumbo ]
++ lib.optionals enableX11 [ libX11 libXext libXi libXrandr ]
@@ -126,7 +127,7 @@ stdenv.mkDerivation rec {
done
'';
desktopItems = [
desktopItems = lib.optionals (enableGL || enableX11) [
(makeDesktopItem {
name = pname;
desktopName = pname;
@@ -12,7 +12,7 @@
, exiftool
, ghostscript
, imagemagick
, mupdf
, mupdf-headless
, netpbm
, numpy
, poppler_utils
@@ -74,7 +74,7 @@ buildPythonPackage rec {
exiftool
ghostscript
imagemagick
mupdf
mupdf-headless
netpbm
numpy
poppler_utils
@@ -7,7 +7,7 @@
, jbig2dec
, deprecated
, lxml
, mupdf
, mupdf-headless
, numpy
, packaging
, pillow
@@ -46,7 +46,7 @@ buildPythonPackage rec {
(substituteAll {
src = ./paths.patch;
jbig2dec = lib.getExe' jbig2dec "jbig2dec";
mutool = lib.getExe' mupdf "mutool";
mutool = lib.getExe' mupdf-headless "mutool";
})
];
+5 -1
View File
@@ -1425,7 +1425,7 @@ with pkgs;
desktopToDarwinBundle = makeSetupHook {
name = "desktop-to-darwin-bundle-hook";
propagatedBuildInputs = [ writeDarwinBundle librsvg imagemagick python3Packages.icnsutil ];
propagatedBuildInputs = [ writeDarwinBundle librsvg imagemagick_light python3Packages.icnsutil ];
} ../build-support/setup-hooks/desktop-to-darwin-bundle.sh;
keepBuildTree = makeSetupHook {
@@ -34215,6 +34215,10 @@ with pkgs;
};
mupdf = callPackage ../applications/misc/mupdf { };
mupdf-headless = mupdf.override {
enableX11 = false;
enableGL = false;
};
mupdf_1_17 = callPackage ../applications/misc/mupdf/1.17 { };
muso = callPackage ../applications/audio/muso {