-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
pythonPackages.sphinxcontrib-tikz: init at 0.4.6 #57583
Conversation
I have verified that this works locally with my documentation. |
@GrahamcOfBorg build python2Packages.sphinxcontrib-tikz python3Packages.sphinxcontrib-tikz |
@@ -4556,6 +4556,10 @@ in { | |||
|
|||
sphinxcontrib-spelling = callPackage ../development/python-modules/sphinxcontrib-spelling { }; | |||
|
|||
sphinxcontrib-tikz = callPackage ../development/python-modules/sphinxcontrib-tikz { | |||
texLive = pkgs.texlive.combine { inherit (pkgs.texlive) scheme-small standalone pgfplots; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
texLive = pkgs.texlive.combine { inherit (pkgs.texlive) scheme-small standalone pgfplots; }; | |
texlive = pkgs.texlive.combine { inherit (pkgs.texlive) scheme-small standalone pgfplots; }; |
sha256 = "4f362b11e3c2bd17d5f0f07fec03917c16fc5bbcda6fe31ee137c547ed6b03a3"; | ||
}; | ||
|
||
propagatedBuildInputs = [ sphinx pdf2svg texLive ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TeXLive should not be propagated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...as well as pdf2svg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package will not work without pdf2svg and texlive. Curious how in general this is handled? I realize that both of those package have a lot of dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these aren't Python packages and should hence not be propagated. Instead, their path should be patched into the source using substituteAll
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an example of that? I've never seen it used. Like so?
patches = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly 👍
@dotlambda I am not completely sure how to write the patch to include texlive. That is why I have not finished this PR. |
You get a checkout of the source code and look for all places where a texlive binary is called, let's say the code is
|
14775a0
to
4baba66
Compare
requires texlive.combined.scheme-full due to needing "standalone.cls" from extras.
4baba66
to
be4f844
Compare
@GrahamcOfBorg build python2Packages.sphinxcontrib-tikz python3Packages.sphinxcontrib-tikz |
@dotlambda I have created the patch (that was fun to figure out how to do with git). I have checked that documentation that uses this package works properly. Ready for merge |
Ping ready for merge |
Limited texlive package to minimal packages schema-small + standalone + pgfplots
Motivation for this change
I want tikz for my documentation (nothing beats tikz in editable graphics :) )
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)