···38383939- Note that the wrapper assumes that the result has a chance to be useful. For example, the core executables should be present, as well as some core data files. The supported way of ensuring this is by including some scheme, for example `scheme-basic`, into the combination.
40404141+- TeX Live packages are also available under `texlive.pkgs` as derivations with outputs `out`, `tex`, `texdoc`, `texsource`, `tlpkg`, `man`, `info`. They cannot be installed outside of `texlive.combine` but are available for other uses. To repackage a font, for instance, use
4242+4343+ ```nix
4444+ stdenvNoCC.mkDerivation rec {
4545+ src = texlive.pkgs.iwona;
4646+4747+ inherit (src) pname version;
4848+4949+ installPhase = ''
5050+ runHook preInstall
5151+ install -Dm644 fonts/opentype/nowacki/iwona/*.otf -t $out/share/fonts/opentype
5252+ runHook postInstall
5353+ '';
5454+ }
5555+ ```
5656+5757+ See `biber`, `iwona` for complete examples.
5858+4159## Custom packages {#sec-language-texlive-custom-packages}
42604361You may find that you need to use an external TeX package. A derivation for such package has to provide the contents of the "texmf" directory in its output and provide the appropriate `tlType` attribute (one of `"run"`, `"bin"`, `"doc"`, `"source"`). Dependencies on other TeX packages can be listed in the attribute `tlDeps`.
+4-5
pkgs/data/fonts/iwona/default.nix
···11{ lib, stdenvNoCC, texlive }:
2233-stdenvNoCC.mkDerivation {
44- pname = "iwona";
55- version = "0.995b";
33+stdenvNoCC.mkDerivation rec {
44+ inherit (src) pname version;
6577- src = lib.head (builtins.filter (p: p.tlType == "run") texlive.iwona.pkgs);
66+ src = texlive.pkgs.iwona;
8798 installPhase = ''
109 runHook preInstall
···2019 # "[...] GUST Font License (GFL), which is a free license, legally
2120 # equivalent to the LaTeX Project Public # License (LPPL), version 1.3c or
2221 # later." - GUST website
2323- license = licenses.lppl13c;
2222+ license = src.meta.license;
2423 maintainers = with maintainers; [ siddharthist ];
2524 platforms = platforms.all;
2625 };