-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
mupdf: 1.23.0 -> 1.23.5; only build and install shared libraries #261113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
RaitoBezarius
merged 9 commits into
NixOS:staging-next
from
lilyinstarlight:fix/mupdf-hell
Nov 15, 2023
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
caa1f0b
mupdf: only build and install shared libraries
lilyinstarlight 8aced2d
llpp: bump aur patch and remove now-unused patch
lilyinstarlight b653be5
beamerpresenter-mupdf: fix build with shared lib mupdf
lilyinstarlight 05c2473
zathuraPkgs.zathura_pdf_mupdf: fix build with shared lib mupdf
lilyinstarlight 027871c
sioyek: fix build with shared lib mupdf
lilyinstarlight a0923a3
arcanPackages.arcan: fix mupdf dependency detection
lilyinstarlight 09ab507
python3Packages.libclang: init
lilyinstarlight 1aa0c11
mupdf: 1.23.0 -> 1.23.5; add support for ocr, cxx, python bindings
lilyinstarlight 1227757
python3Packages.pymupdf: 1.23.3 -> 1.23.6; use mupdf from nixpkgs
lilyinstarlight File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/scripts/wrap/cpp.py b/scripts/wrap/cpp.py | ||
| index 51ac5f1..b5c0b5a 100644 | ||
| --- a/scripts/wrap/cpp.py | ||
| +++ b/scripts/wrap/cpp.py | ||
| @@ -4595,7 +4595,7 @@ def cpp_source( | ||
| */ | ||
| typedef unsigned long size_t; | ||
| ''')) | ||
| - if state.state_.macos: | ||
| + if state.state_.linux or state.state_.macos: | ||
| f.write( textwrap.dedent(''' | ||
| /* | ||
| Workaround on MacOS: we need to define fixed-size int types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| { lib | ||
| , buildPythonPackage | ||
| , llvmPackages | ||
| , setuptools | ||
| , writeText | ||
| }: | ||
|
|
||
| let | ||
| libclang = llvmPackages.libclang; | ||
|
|
||
| pyproject_toml = writeText "pyproject.toml" '' | ||
| [build-system] | ||
| requires = ["setuptools>=42", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
| ''; | ||
|
|
||
| setup_cfg = writeText "setup.cfg" '' | ||
| [metadata] | ||
| name = clang | ||
| version = ${libclang.version} | ||
|
|
||
| [options] | ||
| packages = clang | ||
| ''; | ||
| in buildPythonPackage { | ||
| pname = "libclang"; | ||
| format = "pyproject"; | ||
|
|
||
| inherit (libclang) version src; | ||
|
|
||
| buildInputs = [ setuptools ]; | ||
|
|
||
| postUnpack = '' | ||
| # set source root to python bindings | ||
| if [ -e "$sourceRoot/clang/bindings/python" ]; then | ||
| # LLVM 13+ puts clang sources in subdirectory instead of plain tarball | ||
| sourceRoot="$sourceRoot/clang/bindings/python" | ||
| else | ||
| sourceRoot="$sourceRoot/bindings/python" | ||
| fi | ||
| ''; | ||
|
|
||
| postPatch = '' | ||
| # link in our own build info to build as a python package | ||
| ln -s ${pyproject_toml} ./pyproject.toml | ||
| ln -s ${setup_cfg} ./setup.cfg | ||
|
|
||
| # set passed libclang for runtime | ||
| echo 'Config.set_library_path("${lib.getLib libclang}/lib")' >>./clang/cindex.py | ||
| ''; | ||
|
|
||
| meta = libclang.meta // { | ||
| description = "Python bindings for the C language family frontend for LLVM"; | ||
| maintainers = with lib.maintainers; [ lilyinstarlight ]; | ||
| }; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.