1 { lib, stdenv, fetchFromGitLab, python3Packages, texinfo }:
3 python3Packages.buildPythonApplication rec {
7 src = fetchFromGitLab {
8 owner = "latex-rubber";
11 hash = "sha256-7sv9N3PES5N41yYyXNWfaZ6IhLW6SqMiCHdamsSPQzg=";
14 # I'm sure there is a better way to pass these parameters to the build script...
16 substituteInPlace setup.py \
17 --replace 'pdf = True' 'pdf = False' \
18 --replace '$base/info' 'share/info' \
19 --replace '$base/man' 'share/man' \
20 --replace '$base/share' 'share'
22 substituteInPlace tests/run.sh \
23 --replace /var/tmp /tmp
26 nativeBuildInputs = [ texinfo ];
31 pushd tests >/dev/null
32 ${stdenv.shell} run.sh
39 description = "Wrapper for LaTeX and friends";
41 Rubber is a program whose purpose is to handle all tasks related
42 to the compilation of LaTeX documents. This includes compiling
43 the document itself, of course, enough times so that all
44 references are defined, and running BibTeX to manage
45 bibliographic references. Automatic execution of dvips to
46 produce PostScript documents is also included, as well as usage
47 of pdfLaTeX to produce PDF documents.
49 license = licenses.gpl2Plus;
50 homepage = "https://gitlab.com/latex-rubber/rubber";
51 maintainers = with maintainers; [ ttuegel peterhoeg ];
52 platforms = platforms.unix;