diff options
author | Profpatsch <mail@profpatsch.de> | 2021-01-11 08:54:33 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-01-11 10:38:22 +0100 |
commit | 4a7f99d55d299453a9c2397f90b33d1120669775 (patch) | |
tree | 9fca8e9c9970d0a00ce56dfe11b63ae76b00cf01 /pkgs/tools/typesetting | |
parent | e87aef06e00c42b26789321454d7bd609548cc12 (diff) |
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
Diffstat (limited to 'pkgs/tools/typesetting')
38 files changed, 75 insertions, 75 deletions
diff --git a/pkgs/tools/typesetting/asciidoc/default.nix b/pkgs/tools/typesetting/asciidoc/default.nix index 136c25f73b159..1bcd07aceb586 100644 --- a/pkgs/tools/typesetting/asciidoc/default.nix +++ b/pkgs/tools/typesetting/asciidoc/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, python2 +{ fetchurl, lib, stdenv, python2 , enableStandardFeatures ? false , sourceHighlight ? null @@ -261,7 +261,7 @@ stdenv.mkDerivation rec { preInstall = "mkdir -p $out/etc/vim"; makeFlags = stdenv.lib.optional stdenv.isCygwin "DESTDIR=/."; - meta = with stdenv.lib; { + meta = with lib; { description = "Text-based document generation system"; longDescription = '' AsciiDoc is a text document format for writing notes, documentation, diff --git a/pkgs/tools/typesetting/asciidoctorj/default.nix b/pkgs/tools/typesetting/asciidoctorj/default.nix index 391c78814e772..6a3b43dc8d189 100644 --- a/pkgs/tools/typesetting/asciidoctorj/default.nix +++ b/pkgs/tools/typesetting/asciidoctorj/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchzip, jdk, makeWrapper }: +{ lib, stdenv, fetchzip, jdk, makeWrapper }: stdenv.mkDerivation rec { pname = "asciidoctorj"; @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { --prefix JAVA_HOME : ${jdk} ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Official library for running Asciidoctor on the JVM"; longDescription = '' AsciidoctorJ is the official library for running Asciidoctor on the JVM. diff --git a/pkgs/tools/typesetting/bibclean/default.nix b/pkgs/tools/typesetting/bibclean/default.nix index c95c6921a4e0d..8c7e123acf73b 100644 --- a/pkgs/tools/typesetting/bibclean/default.nix +++ b/pkgs/tools/typesetting/bibclean/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ lib, stdenv, fetchurl }: stdenv.mkDerivation rec { pname = "bibclean"; @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { mkdir -p $out/bin $out/share/man/man1 ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Prettyprint and syntax check BibTeX and Scribe bibliography data base files"; homepage = "http://ftp.math.utah.edu/pub/bibclean"; license = licenses.gpl2; diff --git a/pkgs/tools/typesetting/biber/default.nix b/pkgs/tools/typesetting/biber/default.nix index 0c472947c0a2d..1bcee62ac6cae 100644 --- a/pkgs/tools/typesetting/biber/default.nix +++ b/pkgs/tools/typesetting/biber/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchpatch, perlPackages, shortenPerlShebang, texlive }: +{ lib, stdenv, fetchpatch, perlPackages, shortenPerlShebang, texlive }: let biberSource = stdenv.lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs); @@ -35,7 +35,7 @@ perlPackages.buildPerlModule { shortenPerlShebang $out/bin/biber ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Backend for BibLaTeX"; license = with licenses; [ artistic1 gpl1Plus ]; platforms = platforms.unix; diff --git a/pkgs/tools/typesetting/biblatex-check/default.nix b/pkgs/tools/typesetting/biblatex-check/default.nix index bad5606600239..606e07730e4f6 100644 --- a/pkgs/tools/typesetting/biblatex-check/default.nix +++ b/pkgs/tools/typesetting/biblatex-check/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, python }: +{ lib, stdenv, fetchFromGitHub, python }: stdenv.mkDerivation { pname = "biblatex-check"; @@ -17,7 +17,7 @@ stdenv.mkDerivation { install -Dm755 biblatex_check.py $out/bin/biblatex-check ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Python2/3 script for checking BibLatex .bib files"; homepage = "https://github.com/Pezmc/BibLatex-Check"; license = licenses.mit; diff --git a/pkgs/tools/typesetting/docbook2odf/default.nix b/pkgs/tools/typesetting/docbook2odf/default.nix index d846d9394b26c..b6b56e83688d2 100644 --- a/pkgs/tools/typesetting/docbook2odf/default.nix +++ b/pkgs/tools/typesetting/docbook2odf/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, perlPackages, makeWrapper, zip, libxslt }: +{ lib, stdenv, fetchurl, perlPackages, makeWrapper, zip, libxslt }: stdenv.mkDerivation rec { name = "docbook2odf-0.244"; @@ -30,7 +30,7 @@ stdenv.mkDerivation rec { --prefix PERL5PATH : "${perlPackages.makePerlPath [ perlPackages.PerlMagick ]}" ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Convert DocBook to OpenDocument Format (ODF)"; longDescription = '' Docbook2odf is a toolkit that automaticaly converts DocBook to OASIS diff --git a/pkgs/tools/typesetting/docbook2x/default.nix b/pkgs/tools/typesetting/docbook2x/default.nix index a36da7a2b6ae8..fdfa05f20c1f7 100644 --- a/pkgs/tools/typesetting/docbook2x/default.nix +++ b/pkgs/tools/typesetting/docbook2x/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, texinfo, perlPackages +{ fetchurl, lib, stdenv, texinfo, perlPackages , groff, libxml2, libxslt, gnused, libiconv, opensp , docbook_xml_dtd_43 , makeWrapper }: @@ -44,7 +44,7 @@ stdenv.mkDerivation rec { "${gnused}/bin" ''; - meta = with stdenv.lib; { + meta = with lib; { longDescription = '' docbook2X is a software package that converts DocBook documents into the traditional Unix man page format and the GNU Texinfo diff --git a/pkgs/tools/typesetting/fop/default.nix b/pkgs/tools/typesetting/fop/default.nix index d5dea2c6dc6fe..a572ce216ee6c 100644 --- a/pkgs/tools/typesetting/fop/default.nix +++ b/pkgs/tools/typesetting/fop/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, ant, jdk, runtimeShell }: +{ fetchurl, lib, stdenv, ant, jdk, runtimeShell }: stdenv.mkDerivation rec { pname = "fop"; @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { chmod a+x $out/bin/fop ''; - meta = with stdenv.lib; { + meta = with lib; { description = "XML formatter driven by XSL Formatting Objects (XSL-FO)"; longDescription = '' FOP is a Java application that reads a formatting object tree and then diff --git a/pkgs/tools/typesetting/git-latexdiff/default.nix b/pkgs/tools/typesetting/git-latexdiff/default.nix index d969ca8fec6fc..0bc8b7e073ec2 100644 --- a/pkgs/tools/typesetting/git-latexdiff/default.nix +++ b/pkgs/tools/typesetting/git-latexdiff/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitLab, git, bash }: +{ lib, stdenv, fetchFromGitLab, git, bash }: stdenv.mkDerivation rec { version = "1.3.0"; @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { chmod +x $prefix/bin/git-latexdiff ''; - meta = with stdenv.lib; { + meta = with lib; { description = "View diff on LaTeX source files on the generated PDF files"; homepage = "https://gitlab.com/git-latexdiff/git-latexdiff"; maintainers = [ ]; diff --git a/pkgs/tools/typesetting/halibut/default.nix b/pkgs/tools/typesetting/halibut/default.nix index d2779df0c9442..d077ef823ffc4 100644 --- a/pkgs/tools/typesetting/halibut/default.nix +++ b/pkgs/tools/typesetting/halibut/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, perl}: +{lib, stdenv, fetchurl, perl}: stdenv.mkDerivation rec { name = "halibut-1.2"; @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { make install ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Documentation production system for software manuals"; homepage = "https://www.chiark.greenend.org.uk/~sgtatham/halibut/"; license = licenses.mit; diff --git a/pkgs/tools/typesetting/hevea/default.nix b/pkgs/tools/typesetting/hevea/default.nix index f3f634eb944c7..97b020d3e21cb 100644 --- a/pkgs/tools/typesetting/hevea/default.nix +++ b/pkgs/tools/typesetting/hevea/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ocamlPackages }: +{ lib, stdenv, fetchurl, ocamlPackages }: stdenv.mkDerivation rec { name = "hevea-2.34"; @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { makeFlags = [ "PREFIX=$(out)" ]; - meta = with stdenv.lib; { + meta = with lib; { description = "A quite complete and fast LATEX to HTML translator"; homepage = "http://pauillac.inria.fr/~maranget/hevea/"; license = licenses.qpl; diff --git a/pkgs/tools/typesetting/htmldoc/default.nix b/pkgs/tools/typesetting/htmldoc/default.nix index ae6e2e9006e64..124839ca45d64 100644 --- a/pkgs/tools/typesetting/htmldoc/default.nix +++ b/pkgs/tools/typesetting/htmldoc/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl +{ lib, stdenv, fetchurl , SystemConfiguration ? null, Foundation ? null }: @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { lib.optional isDarwin SystemConfiguration ++ lib.optional isDarwin Foundation; - meta = with stdenv.lib; { + meta = with lib; { description = "Converts HTML files to PostScript and PDF"; homepage = "https://michaelrsweet.github.io/htmldoc"; license = licenses.gpl2; diff --git a/pkgs/tools/typesetting/kindlegen/default.nix b/pkgs/tools/typesetting/kindlegen/default.nix index 1067386c2f8d3..60f58a361dfd8 100644 --- a/pkgs/tools/typesetting/kindlegen/default.nix +++ b/pkgs/tools/typesetting/kindlegen/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, unzip }: +{ fetchurl, lib, stdenv, unzip }: let version = "2.9"; @@ -41,7 +41,7 @@ in stdenv.mkDerivation { cp -r *.txt *.html docs/* $out/share/kindlegen/doc ''; - meta = with stdenv.lib; { + meta = with lib; { broken = true; # download links got removed description = "Convert documents to .mobi for use with Amazon Kindle"; homepage = "https://www.amazon.com/gp/feature.html?docId=1000765211"; diff --git a/pkgs/tools/typesetting/lowdown/default.nix b/pkgs/tools/typesetting/lowdown/default.nix index ecd25bf8e8338..d6b92991340a3 100644 --- a/pkgs/tools/typesetting/lowdown/default.nix +++ b/pkgs/tools/typesetting/lowdown/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, which }: +{ lib, stdenv, fetchurl, which }: stdenv.mkDerivation rec { pname = "lowdown"; @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { MANDIR=''${!outputBin}/share/man ''; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://kristaps.bsd.lv/lowdown/"; description = "Simple markdown translator"; license = licenses.isc; diff --git a/pkgs/tools/typesetting/multimarkdown/default.nix b/pkgs/tools/typesetting/multimarkdown/default.nix index 5043eb681e881..67c995f6c269e 100644 --- a/pkgs/tools/typesetting/multimarkdown/default.nix +++ b/pkgs/tools/typesetting/multimarkdown/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, perl }: +{ lib, stdenv, fetchgit, perl }: stdenv.mkDerivation { pname = "multimarkdown"; @@ -19,7 +19,7 @@ stdenv.mkDerivation { checkPhase = "make test-all"; installPhase = "make pkg-install prefix='' DESTDIR=$out; make pkg-install-scripts prefix='' DESTDIR=$out"; - meta = with stdenv.lib; { + meta = with lib; { description = "A derivative of Markdown that adds new syntax features"; longDescription = '' MultiMarkdown is a lightweight markup language created by diff --git a/pkgs/tools/typesetting/odpdown/default.nix b/pkgs/tools/typesetting/odpdown/default.nix index 4b85a252c1308..989f61f4592eb 100644 --- a/pkgs/tools/typesetting/odpdown/default.nix +++ b/pkgs/tools/typesetting/odpdown/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pythonPackages, libreoffice }: +{ lib, stdenv, fetchurl, pythonPackages, libreoffice }: pythonPackages.buildPythonApplication rec { @@ -16,7 +16,7 @@ pythonPackages.buildPythonApplication rec { nose ]; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://github.com/thorstenb/odpdown"; repositories.git = "https://github.com/thorstenb/odpdown.git"; description = "Create nice-looking slides from your favourite text editor"; diff --git a/pkgs/tools/typesetting/pdf2djvu/default.nix b/pkgs/tools/typesetting/pdf2djvu/default.nix index c3ddb219ab8cb..eb605ef8fab4c 100644 --- a/pkgs/tools/typesetting/pdf2djvu/default.nix +++ b/pkgs/tools/typesetting/pdf2djvu/default.nix @@ -52,7 +52,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - meta = with stdenv.lib; { + meta = with lib; { description = "Creates djvu files from PDF files"; homepage = "https://jwilk.net/software/pdf2djvu"; license = licenses.gpl2; diff --git a/pkgs/tools/typesetting/pdf2odt/default.nix b/pkgs/tools/typesetting/pdf2odt/default.nix index 879597f91da4e..8365163c2fcb1 100644 --- a/pkgs/tools/typesetting/pdf2odt/default.nix +++ b/pkgs/tools/typesetting/pdf2odt/default.nix @@ -38,7 +38,7 @@ in stdenv.mkDerivation rec { --prefix PATH : ${path} ''; - meta = with stdenv.lib; { + meta = with lib; { description = "PDF to ODT format converter"; homepage = "https://github.com/gutschke/pdf2odt"; license = licenses.mit; diff --git a/pkgs/tools/typesetting/pdfsandwich/default.nix b/pkgs/tools/typesetting/pdfsandwich/default.nix index 12fcf8a71a26b..de3cc7f64e8a9 100644 --- a/pkgs/tools/typesetting/pdfsandwich/default.nix +++ b/pkgs/tools/typesetting/pdfsandwich/default.nix @@ -1,4 +1,4 @@ -{ stdenv, ocaml, makeWrapper, fetchsvn, ghostscript, imagemagick, perl, poppler_utils, tesseract, unpaper }: +{ lib, stdenv, ocaml, makeWrapper, fetchsvn, ghostscript, imagemagick, perl, poppler_utils, tesseract, unpaper }: stdenv.mkDerivation { version = "0.1.7"; @@ -20,7 +20,7 @@ stdenv.mkDerivation { cp -p pdfsandwich.1.gz $out/man/man1 ''; -meta = with stdenv.lib; { +meta = with lib; { description = "OCR tool for scanned PDFs"; homepage = "http://www.tobias-elze.de/pdfsandwich/"; license = licenses.gpl2; diff --git a/pkgs/tools/typesetting/pdftk/default.nix b/pkgs/tools/typesetting/pdftk/default.nix index 25fc794b05580..f90d1d4a7ed1d 100644 --- a/pkgs/tools/typesetting/pdftk/default.nix +++ b/pkgs/tools/typesetting/pdftk/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitLab, gradle, jre, perl, writeText, runtimeShell }: +{ lib, stdenv, fetchFromGitLab, gradle, jre, perl, writeText, runtimeShell }: let pname = "pdftk"; @@ -85,7 +85,7 @@ in stdenv.mkDerivation rec { cp ${src}/pdftk.1 $out/share/man/man1 ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Command-line tool for working with PDFs"; homepage = "https://gitlab.com/pdftk-java/pdftk"; license = licenses.gpl2Plus; diff --git a/pkgs/tools/typesetting/psutils/default.nix b/pkgs/tools/typesetting/psutils/default.nix index 72c72d1b3baa6..fe3223ae6c902 100644 --- a/pkgs/tools/typesetting/psutils/default.nix +++ b/pkgs/tools/typesetting/psutils/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, perl }: +{ lib, stdenv, fetchurl, perl }: stdenv.mkDerivation { name = "psutils-17"; @@ -18,7 +18,7 @@ stdenv.mkDerivation { mkdir -p $out/bin $out/share/man/man1 ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Collection of useful utilities for manipulating PS documents"; homepage = "http://knackered.knackered.org/angus/psutils/"; license = licenses.bsd3; diff --git a/pkgs/tools/typesetting/rubber/default.nix b/pkgs/tools/typesetting/rubber/default.nix index f3f036ce50eb0..c09ae04e3a1d8 100644 --- a/pkgs/tools/typesetting/rubber/default.nix +++ b/pkgs/tools/typesetting/rubber/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, python3Packages, texinfo }: +{ fetchurl, lib, stdenv, python3Packages, texinfo }: python3Packages.buildPythonApplication rec { pname = "rubber"; @@ -24,7 +24,7 @@ python3Packages.buildPythonApplication rec { cd tests && ${stdenv.shell} run.sh ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Wrapper for LaTeX and friends"; longDescription = '' Rubber is a program whose purpose is to handle all tasks related diff --git a/pkgs/tools/typesetting/satysfi/default.nix b/pkgs/tools/typesetting/satysfi/default.nix index b97652bb4a695..03ce2eb5ee806 100644 --- a/pkgs/tools/typesetting/satysfi/default.nix +++ b/pkgs/tools/typesetting/satysfi/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchzip, fetchFromGitHub, ruby, dune_2, ocamlPackages +{ lib, stdenv, fetchzip, fetchFromGitHub, ruby, dune_2, ocamlPackages , ipaexfont, junicode, lmodern, lmmath }: let @@ -67,7 +67,7 @@ in cp -r lib-satysfi/dist/ $out/share/satysfi/ ''; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://github.com/gfngfn/SATySFi"; description = "A statically-typed, functional typesetting system"; license = licenses.lgpl3; diff --git a/pkgs/tools/typesetting/scdoc/default.nix b/pkgs/tools/typesetting/scdoc/default.nix index ddff50ea0e830..1b22b781d5496 100644 --- a/pkgs/tools/typesetting/scdoc/default.nix +++ b/pkgs/tools/typesetting/scdoc/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ lib, stdenv, fetchurl }: stdenv.mkDerivation rec { pname = "scdoc"; @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { doCheck = true; - meta = with stdenv.lib; { + meta = with lib; { description = "A simple man page generator"; longDescription = '' scdoc is a simple man page generator written for POSIX systems written in diff --git a/pkgs/tools/typesetting/sile/default.nix b/pkgs/tools/typesetting/sile/default.nix index 9ed6c1de0e91b..e28fd9a7eaf93 100644 --- a/pkgs/tools/typesetting/sile/default.nix +++ b/pkgs/tools/typesetting/sile/default.nix @@ -1,4 +1,4 @@ -{ stdenv +{ lib, stdenv , darwin , fetchurl , makeWrapper @@ -95,7 +95,7 @@ stdenv.mkDerivation rec { outputs = [ "out" "doc" "man" "dev" ]; - meta = with stdenv.lib; { + meta = with lib; { description = "A typesetting system"; longDescription = '' SILE is a typesetting system; its job is to produce beautiful diff --git a/pkgs/tools/typesetting/sshlatex/default.nix b/pkgs/tools/typesetting/sshlatex/default.nix index 26af225894673..663f12611b1de 100644 --- a/pkgs/tools/typesetting/sshlatex/default.nix +++ b/pkgs/tools/typesetting/sshlatex/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, inotify-tools, openssh, perl, gnutar, bash, makeWrapper }: +{ lib, stdenv, fetchFromGitHub, inotify-tools, openssh, perl, gnutar, bash, makeWrapper }: stdenv.mkDerivation rec { pname = "sshlatex"; @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { wrapProgram $out/bin/sshlatex --prefix PATH : "${binPath}" ''; - meta = with stdenv.lib; { + meta = with lib; { description = "A collection of hacks to efficiently run LaTeX via ssh"; longDescription = '' sshlatex is a tool which uploads LaTeX source files to a remote, runs diff --git a/pkgs/tools/typesetting/tectonic/default.nix b/pkgs/tools/typesetting/tectonic/default.nix index d37a4a69570bf..f22840e2d862c 100644 --- a/pkgs/tools/typesetting/tectonic/default.nix +++ b/pkgs/tools/typesetting/tectonic/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform +{ lib, stdenv, fetchFromGitHub, rustPlatform , darwin, fontconfig, harfbuzz, openssl, pkgconfig }: rustPlatform.buildRustPackage rec { @@ -26,7 +26,7 @@ rustPlatform.buildRustPackage rec { doCheck = true; - meta = with stdenv.lib; { + meta = with lib; { description = "Modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive"; homepage = "https://tectonic-typesetting.github.io/"; changelog = "https://github.com/tectonic-typesetting/tectonic/blob/tectonic@${version}/CHANGELOG.md"; diff --git a/pkgs/tools/typesetting/ted/default.nix b/pkgs/tools/typesetting/ted/default.nix index 6d7ef3348613b..0fc2427588f72 100644 --- a/pkgs/tools/typesetting/ted/default.nix +++ b/pkgs/tools/typesetting/ted/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, zlib, pcre, xorg, libjpeg, libtiff, libpng, gtk2, libpaper, makeWrapper, ghostscript }: +{ lib, stdenv, fetchurl, pkgconfig, zlib, pcre, xorg, libjpeg, libtiff, libpng, gtk2, libpaper, makeWrapper, ghostscript }: stdenv.mkDerivation rec { pname = "ted"; @@ -60,7 +60,7 @@ stdenv.mkDerivation rec { buildInputs = [ pkgconfig zlib pcre xorg.xlibsWrapper xorg.libXpm libjpeg libtiff libpng gtk2 libpaper makeWrapper ]; - meta = with stdenv.lib; { + meta = with lib; { description = "An easy rich text processor"; longDescription = '' Ted is a text processor running under X Windows on Unix/Linux systems. diff --git a/pkgs/tools/typesetting/tex/lkproof/default.nix b/pkgs/tools/typesetting/tex/lkproof/default.nix index 39029635beb46..d5b6a7f9f9734 100644 --- a/pkgs/tools/typesetting/tex/lkproof/default.nix +++ b/pkgs/tools/typesetting/tex/lkproof/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, unzip}: +{lib, stdenv, fetchurl, unzip}: stdenv.mkDerivation { name = "lkproof-3.1"; @@ -15,7 +15,7 @@ stdenv.mkDerivation { cp -prd *.sty $out/share/texmf-nix/tex/generic/lkproof "; - meta = with stdenv.lib; { + meta = with lib; { platforms = platforms.unix; license = licenses.gpl1Plus; }; diff --git a/pkgs/tools/typesetting/tex/pgf/1.x.nix b/pkgs/tools/typesetting/tex/pgf/1.x.nix index dc13ea3317822..efaf0e0fe1b36 100644 --- a/pkgs/tools/typesetting/tex/pgf/1.x.nix +++ b/pkgs/tools/typesetting/tex/pgf/1.x.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl}: +{lib, stdenv, fetchurl}: stdenv.mkDerivation { name = "pgf-1.18"; @@ -15,7 +15,7 @@ stdenv.mkDerivation { cp -prd * $out/share/texmf-nix "; - meta = with stdenv.lib; { + meta = with lib; { branch = "1"; platforms = platforms.unix; license = licenses.gpl2; diff --git a/pkgs/tools/typesetting/tex/pgf/2.x.nix b/pkgs/tools/typesetting/tex/pgf/2.x.nix index 00b92935babb6..9661ec3324be1 100644 --- a/pkgs/tools/typesetting/tex/pgf/2.x.nix +++ b/pkgs/tools/typesetting/tex/pgf/2.x.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl}: +{lib, stdenv, fetchurl}: stdenv.mkDerivation { name = "pgf-2.00"; @@ -15,7 +15,7 @@ stdenv.mkDerivation { cp -prd * $out/share/texmf-nix "; - meta = with stdenv.lib; { + meta = with lib; { branch = "2"; platforms = platforms.unix; license = licenses.gpl2; diff --git a/pkgs/tools/typesetting/tex/pgf/3.x.nix b/pkgs/tools/typesetting/tex/pgf/3.x.nix index a9ff54e4c11ec..42320b49b3d86 100644 --- a/pkgs/tools/typesetting/tex/pgf/3.x.nix +++ b/pkgs/tools/typesetting/tex/pgf/3.x.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, unzip}: +{lib, stdenv, fetchurl, unzip}: stdenv.mkDerivation { name = "pgf-3.00"; @@ -24,7 +24,7 @@ stdenv.mkDerivation { cp -prd * $out/share/texmf-nix "; - meta = with stdenv.lib; { + meta = with lib; { branch = "3"; platforms = platforms.unix; license = licenses.gpl2; diff --git a/pkgs/tools/typesetting/tex/pgfplots/default.nix b/pkgs/tools/typesetting/tex/pgfplots/default.nix index 998f61786db45..aecf32c587472 100644 --- a/pkgs/tools/typesetting/tex/pgfplots/default.nix +++ b/pkgs/tools/typesetting/tex/pgfplots/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, unzip}: +{lib, stdenv, fetchurl, unzip}: stdenv.mkDerivation { name = "pgfplots-1.5.1"; @@ -19,7 +19,7 @@ stdenv.mkDerivation { cp -prd * $out/share/texmf-nix "; - meta = with stdenv.lib; { + meta = with lib; { description = "TeX package to draw plots directly in TeX in two and three dimensions"; homepage = "http://pgfplots.sourceforge.net"; platforms = platforms.unix; diff --git a/pkgs/tools/typesetting/tex/pplatex/default.nix b/pkgs/tools/typesetting/tex/pplatex/default.nix index 01777f3dd4285..d59ab8a2a90c3 100644 --- a/pkgs/tools/typesetting/tex/pplatex/default.nix +++ b/pkgs/tools/typesetting/tex/pplatex/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, cmake, pkgconfig, pcre }: +{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, pcre }: stdenv.mkDerivation { pname = "pplatex"; @@ -21,7 +21,7 @@ stdenv.mkDerivation { runHook postInstall ''; - meta = with stdenv.lib; { + meta = with lib; { description = "A tool to reformat the output of latex and friends into readable messages"; homepage = "https://github.com/stefanhepp/pplatex"; diff --git a/pkgs/tools/typesetting/tex/tetex/default.nix b/pkgs/tools/typesetting/tex/tetex/default.nix index 021927702ffbe..db0a4c0160247 100644 --- a/pkgs/tools/typesetting/tex/tetex/default.nix +++ b/pkgs/tools/typesetting/tex/tetex/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, flex, bison, zlib, libpng, ncurses, ed, automake }: +{ lib, stdenv, fetchurl, flex, bison, zlib, libpng, ncurses, ed, automake }: stdenv.mkDerivation { name = "tetex-3.0"; @@ -45,7 +45,7 @@ stdenv.mkDerivation { substituteInPlace ./tetex-src-3.0/configure --replace /usr/bin/install $(type -P install) ''; - meta = with stdenv.lib; { + meta = with lib; { description = "A full-featured (La)TeX distribution"; homepage = "http://www.tug.org/tetex/"; maintainers = with maintainers; [ lovek323 ]; diff --git a/pkgs/tools/typesetting/tex/texlive/bin.nix b/pkgs/tools/typesetting/tex/texlive/bin.nix index 030ac1b43aae7..3b09bc4a55a8a 100644 --- a/pkgs/tools/typesetting/tex/texlive/bin.nix +++ b/pkgs/tools/typesetting/tex/texlive/bin.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl +{ lib, stdenv, fetchurl , texlive , zlib, libiconv, libpng, libX11 , freetype, gd, libXaw, icu, ghostscript, libXpm, libXmu, libXext @@ -142,7 +142,7 @@ core = stdenv.mkDerivation rec { setupHook = ./setup-hook.sh; # TODO: maybe texmf-nix -> texmf (and all references) passthru = { inherit version buildInputs; }; - meta = with stdenv.lib; { + meta = with lib; { description = "Basic binaries for TeX Live"; homepage = "http://www.tug.org/texlive"; license = stdenv.lib.licenses.gpl2; @@ -341,7 +341,7 @@ pygmentex = python2Packages.buildPythonApplication rec { runHook postInstall ''; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://www.ctan.org/pkg/pygmentex"; description = "Auxiliary tool for typesetting code listings in LaTeX documents using Pygments"; longDescription = '' diff --git a/pkgs/tools/typesetting/tikzit/default.nix b/pkgs/tools/typesetting/tikzit/default.nix index 76b9b285d153e..29fd21ed31fe8 100644 --- a/pkgs/tools/typesetting/tikzit/default.nix +++ b/pkgs/tools/typesetting/tikzit/default.nix @@ -1,4 +1,4 @@ -{ stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qtbase, poppler, flex, bison }: +{ lib, stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qtbase, poppler, flex, bison }: mkDerivation { pname = "tikzit"; @@ -17,7 +17,7 @@ mkDerivation { # src/data/tikzlexer.l:29:10: fatal error: tikzparser.parser.hpp: No such file or directory enableParallelBuilding = false; - meta = with stdenv.lib; { + meta = with lib; { description = "A graphical tool for rapidly creating graphs and diagrams using PGF/TikZ"; longDescription = '' TikZiT is a simple GUI editor for graphs and string diagrams. diff --git a/pkgs/tools/typesetting/xmlroff/default.nix b/pkgs/tools/typesetting/xmlroff/default.nix index eb026e5557ebb..d214b24b80b3c 100644 --- a/pkgs/tools/typesetting/xmlroff/default.nix +++ b/pkgs/tools/typesetting/xmlroff/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub +{ lib, stdenv, fetchFromGitHub , autoreconfHook , gtk2 , libxml2 @@ -46,7 +46,7 @@ stdenv.mkDerivation rec { substituteInPlace Makefile --replace "docs" "" # docs target wants to download from network ''; - meta = with stdenv.lib; { + meta = with lib; { description = "XSL Formatter"; homepage = "http://xmlroff.org/"; platforms = platforms.unix; |