Tex: Difference between revisions
imported>Tomberek mNo edit summary |
imported>7c6f434c Add an example of overriding a package version |
||
| Line 83: | Line 83: | ||
You might want to review [https://github.com/NixOS/nixpkgs/issues/17748] | You might want to review [https://github.com/NixOS/nixpkgs/issues/17748] | ||
=== Removing packages from a collection === | |||
If you want to package and install a fresher version of some TeXLive package, you might experience a collision with a package from a scheme or a collection you have installed as a whole. To resolve this issue, remove the package by pname from pkgs. | |||
Example code: | |||
pkgs.texlive.combine { | |||
scheme-medium = pkgs.texlive.scheme-medium // { | |||
pkgs = pkgs.lib.filter | |||
(x: (x.pname != "apxproof")) | |||
pkgs.texlive.scheme-medium.pkgs; | |||
}; | |||
apxproof = { pkgs = [(pkgs.runCommand "apxproof" { | |||
src = pkgs.fetchurl { | |||
url = "https://raw.githubusercontent.com/PierreSenellart/apxproof/1ac14c47b8351b693ca05eec73dca1332a517ac9/apxproof.sty"; | |||
sha256 = "sha256-XSgtXsOwhMu2Wo4hVp8ZfaPWgjEEg3EBn5/BhD3xkMA="; | |||
}; | |||
passthru = { | |||
pname = "apxproof"; | |||
version = "1.2.3"; | |||
tlType = "run"; | |||
}; | |||
} | |||
" | |||
mkdir -p $out/tex/latex/apxproof/ | |||
cp $src $out/tex/latex/apxproof/apxproof.sty | |||
")]; }; | |||
} | |||
== Frequently asked questions FAQ == | == Frequently asked questions FAQ == | ||