Commit graph

67 commits

Author SHA1 Message Date
Ben Siraphob d6aeae8f90 pkgs/tools: pkgconfig -> pkg-config (2) 2021-01-17 23:27:27 +07:00
Ben Siraphob 8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Dmitry Kalinkin 9ef277209a
texlive.bin.dvisvgm: texlive 2.8.1 -> upstream 2.11 2020-11-30 15:38:28 -05:00
Dmitry Kalinkin 047749744f
texlive.bin.xindy: disable on platforms where clisp is broken 2020-10-18 14:08:43 -04:00
Dmitry Kalinkin ea5ac1103c
texlive.bin.core: remove unneeded autoreconfHook
Revert "texlive: fix missing synctex header"

This reverts commit ce6e72a11c.
2020-10-18 13:56:57 -04:00
Dmitry Kalinkin 10438ba4fa
texlive: 2019 -> 2020
Also change default package version from texlive year to a
revision. The problem with using texlive year is that it will change
on each of our update even if the package itself was not updated. The
texlive SVN revision number should not change unless the package is
updated. This will allow to share more store paths between different
texlive versions.
2020-10-11 12:28:26 -04:00
Dmitry Kalinkin d2a3ac31b6
texlive.bin: provide luajittex and mfluajit binaries
The ppc64 condition is based on previous reports and was not tested on
actual hardware.
2020-10-11 12:28:25 -04:00
Dmitry Kalinkin b797fb24c4
texlive.bin.mflua: init 2020-10-11 12:28:25 -04:00
Dmitry Kalinkin 69e0797b00
texlive.bin.core: avoid building lua{53,jit} libraries 2020-10-11 12:28:11 -04:00
Dmitry Kalinkin 02cbf4e773
texlive.bin.core: remove outdated options 2020-10-09 18:19:49 -04:00
Dmitry Kalinkin 0f564014b6
texlive: move chktex from texlive.bin.core to texlive.bin.chktex
chktex binary doesn't work without its global resource file which
comes in its tlType="run" package. This commit moves chktex into a
separate tlType="bin" package so it is only used along with its
tlType="run" counterpart.
2020-09-29 07:35:03 -04:00
Dylan Simon 4ab0be845d
texlive.bin: fix poppler compatibility patch urls (#91890) 2020-07-02 12:59:59 -04:00
Ismaël Bouya bb79233b94
texlive: Fix texlive pstricks
The upgrade of ghostscript to 9.50 produced some issues with texlive
2019. This patch adds an additional fix necessary for the upgrade
preventing pstricks from working correctly:

  https://tug.org/pipermail/dvipdfmx/2019-November/000036.html
2020-04-22 18:34:06 +02:00
Dmitry Kalinkin af72bf0ae2
texlive.bin: fix for poppler 0.84 2020-04-16 04:17:22 +02:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Dmitry Kalinkin 9752593eb0
texlive: 2019 -> 2019-final
The biber package is now at 2.14, but TextBibTeX is still required.

Few changes were needed for newly introduced scripts-extra path. This
broke some of our old tricks which were relying on having writable
script directories. The changes to the script locations made buildEnv
create symlinks to the script directories instead of directories of
symlinks to scripts. The changes to texlinks.sh and texlive/TeXLive
perl path were made because of this.
2020-03-15 14:56:17 -04:00
Will Dietz fc7e4c9267 texlive: poppler 0.84 fix, patch from gentoo 2020-02-03 09:58:44 -08:00
Dmitry Kalinkin dfc9845838
texlive: provide a working pygmentex executable
The old top-level pygmentex package is replaced with an alias.
2019-12-15 19:52:17 -05:00
Dmitry Kalinkin c644c7578d
texlive.bin.dvipng: fix "Fatal error, PK file ends prematurely"
Closes: #75605
2019-12-13 13:14:35 -05:00
Dmitry Kalinkin 2f637f4cff
texlive.bin.dvisvgm: don't provide dependencies that it ignores
dvisvgm currently uses its own vendored versions for multiple libraries
2019-12-08 23:04:57 -05:00
Dmitry Kalinkin d26ca8bc66
texlive.bin.dvisvgm: fix for our ghostscript 2019-12-08 22:59:45 -05:00
Jonathan Ringer cbbad0d899 texlive.bin: fix darwin build 2019-12-04 09:26:39 -08:00
Jan Tojnar 9e4d564543
texlive.bin.core: Fix build with Poppler 0.83.0 2019-12-03 01:33:10 +01:00
Dmitry Kalinkin 97dbf112b4
texlive: 2018 -> 2019
biber: 2.12 -> 2.13

Vendored potrace was moved from libs/potrace to
texk/dvisvgm/dvisvgm-src/libs/potrace. Unfortunately, it is not trivial
to remove it from there, so for now dvisvgm seems to be using its
vendored dependencies.
2019-11-06 12:56:10 -05:00
volth 08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Vladimír Čunát 2e6bf42a22
Merge branch 'master' into staging-next
There ver very many conflicts, basically all due to
name -> pname+version.  Fortunately, almost everything was auto-resolved
by kdiff3, and for now I just fixed up a couple evaluation problems,
as verified by the tarball job.  There might be some fallback to these
conflicts, but I believe it should be minimal.

Hydra nixpkgs: ?compare=1538299
2019-08-24 08:55:37 +02:00
Dmitry Kalinkin 430f0e14d3
texlive: fix too-long shebang line on Darwin for latexinent 2019-08-19 18:56:36 -04:00
volth c814d72b51 treewide: name -> pname 2019-08-17 10:54:38 +00:00
volth b3cc65f8b9 buildPerlPackage: name -> (pname, version) 2019-06-20 15:56:50 +00:00
Dmitry Kalinkin b6d0bdf513
texlive: provide bin.texlive on Darwin too
texlive attribute was accidentally added in attrset wrapped with

  stdenv.lib.optionalAttrs (!stdenv.isDarwin)

Fixes: dbc2c1c4b8 ('texlive: add missing perl dependencies for latexindent')
2019-05-03 10:33:04 -04:00
Dmitry Kalinkin 7eeab3726f
Merge pull request #59537 from veprbl/pr/texlive_latexindent_deps
texlive: add missing perl dependencies for latexindent
2019-05-02 12:44:07 -04:00
Mario Rodas 2c6ecba31e
texlive.bin.core-big: add libX11 to buildInputs
metafont requires libX11
2019-05-01 06:10:29 -05:00
Dmitry Kalinkin dbc2c1c4b8
texlive: add missing perl dependencies for latexindent 2019-04-15 11:30:17 -04:00
Dmitry Kalinkin 7669144a27
texlive: add veprbl to maintainers
cc #56797
2019-03-16 12:04:04 -04:00
Will Dietz 33b9ddc0a3 texlive: fix w/poppler 0.73.0 2019-01-08 21:40:24 -06:00
Vladimír Čunát e16ec2920a
texlive.bin.core-big: use postPatch from .core
Otherwise it wouldn't build with new poppler either.
(Perhaps not all of it is needed here, but why not apply it all?)
2018-12-25 10:21:36 +01:00
Jan Tojnar 76725778ce
texlive.bin.core: Fix build with poppler 0.72 2018-12-23 03:07:29 +01:00
Mario Rodas 679a1f728e
texlive: fix link to poppler patch 2018-12-08 08:56:32 -05:00
Robin Gloster ce6e72a11c
texlive: fix missing synctex header
The automake file was patched but `automake` not run.
Also since the texk/web2c folder is not in autoconfig's
SUBDIRS the autoreconfHook has to be run in there.

Completely fixes #46376
2018-09-18 18:33:08 +02:00
Samuel Dionne-Riel 1ac912bf1b texlive: Adds patch for missing synctex header. (#46376)
This seems like a known issue as other distributions (ArchLinux here)
have patches fixing the issue.

This hopefully fixes more than one dependant builds for ZHF 18.09.
2018-09-09 11:37:29 +02:00
Uli Baum 831551a9a1 texlive.bin.core-big: disable luatex53
build failed on Darwin
Patch by @veprbl
2018-08-29 11:03:45 +02:00
Uli Baum ac03d2e571 texlive.bin.core-big: remove unneeded compiler flags 2018-08-29 11:03:45 +02:00
Uli Baum 149b180f18 texlive.bin: 20170524 -> 20180414 2018-08-29 11:03:44 +02:00
CrystalGamma 43eb8b9a93 texlive-bin: disable mfluajit on ppc64(le) (#45475)
LuaJIT currently has no 64-bit Power support and so breaks the build on such platforms.
2018-08-23 15:30:19 +02:00
Benjamin Hipple c9d55ae426 Set xindy HOME to . 2018-08-09 18:49:35 +02:00
Benjamin Hipple 7c5fd6801b texlive: 2017 -> 2017-final
This commit rebuilds texlive 2017 with the final release of 2017. As described
in these issues [1][2][3], the upstream CTAN mirrors are a continuously moving
rolling release without historical archives.

This particular FTP server is also a rolling release folling CTAN for the latest
version, but it has snapshots of the final texlive releases; it appears that the
2017 distribution has been unmodified since texlive-2018 was released earlier
this year.

Along the way, we needed to fix several issues:
- xindy: if $HOME is unset, it will try to mkdir /homeless-shelter, which fails
  due to insufficient permissions.
- scheme-infraonly: this scheme had symlinks into other releases that were
  read-only, so it couldn't patch and modify the scripts. This commit removes it
  for now, but that's not a particularly satisfying solution. Ideas?

This also adds some documentation on the upgrade process to prepare for
texlive-2018 [4].

This commit also replaces the sha1 hashes with upstream's standard sha512 hashes.
It appears the motivation for the shorter hashes was to save disk space in the
derivations; in master, the size of this directory is 1012K; in this commit it
is 1600K. The difference is not particularly large, and the downsides to using
our own sha1 hashes are:

- More nix code to maintain
- Multi-step upgrade process for maintainers: the maintainer first has to
  download all upstream tarballs by sha512 hash, then run the fix script, then
  rebuild with sha1 hashes.
- Less transparent. If we use the upstream sha512 hashes, any user can
  immediately verify that the hashes we're providing match upstream, or match
  the snapshot in time.
- Easier to debug. Since upstream is rolling and packages may disappear or fail
  to build, it's useful to be able to determine if the sha mismatch is because
  of an update or not; if we have a sha1 mismatch and no tarball to pull, we
  can't figure out which sha512sum would have produced that sha1.
- Less trust required. Due to the above, users don't have to trust the
  content-addressed mirrors on IPFS and @veprbl's servers as much.
- Easier to cobble together a source distribution from a variety of sources. It
  seems some FTP servers have more/less than others, or older/newer packages. If
  we know what we're looking for beforehand and we're just missing a few
  packages whose hashes match the advertised hashes upstream, it's easier to find.

[1] https://github.com/NixOS/nixpkgs/issues/24683
[2] https://github.com/NixOS/nixpkgs/issues/10026
[3] https://github.com/NixOS/nixpkgs/issues/34490
[4] https://github.com/NixOS/nixpkgs/issues/40232
2018-08-09 18:49:35 +02:00
volth 52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Silvan Mosberger a986631655 texlive: Propagate biber binary (#42875) 2018-07-06 00:19:47 +02:00
Jan Malakhovski 7438083a4d tree-wide: disable doCheck and doInstallCheck where it fails (the trivial part) 2018-04-25 04:18:46 +00:00