diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2023-11-06 16:47:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 16:47:04 -0500 |
commit | 93b63a2cabbd80a7c7727b447664714757defa6a (patch) | |
tree | 84a5b7cdbaae36f211fa8af9a351bd42b9abc133 /pkgs/development | |
parent | 61a70ae22d3cf4ed3ad5229e7f4b0804c63ac104 (diff) | |
parent | f5edeac421435433eb651ae520ae0b9994c2d07b (diff) | |
download | nixpkgs-93b63a2cabbd80a7c7727b447664714757defa6a.tar nixpkgs-93b63a2cabbd80a7c7727b447664714757defa6a.tar.gz nixpkgs-93b63a2cabbd80a7c7727b447664714757defa6a.tar.bz2 nixpkgs-93b63a2cabbd80a7c7727b447664714757defa6a.tar.lz nixpkgs-93b63a2cabbd80a7c7727b447664714757defa6a.tar.xz nixpkgs-93b63a2cabbd80a7c7727b447664714757defa6a.tar.zst nixpkgs-93b63a2cabbd80a7c7727b447664714757defa6a.zip |
Merge pull request #265514 from xworld21/treewide-texlive-with-packages
treewide: switch to texlive.withPackages
Diffstat (limited to 'pkgs/development')
20 files changed, 50 insertions, 58 deletions
diff --git a/pkgs/development/compilers/asl/default.nix b/pkgs/development/compilers/asl/default.nix index b8c900a20b3..5a7ca869278 100644 --- a/pkgs/development/compilers/asl/default.nix +++ b/pkgs/development/compilers/asl/default.nix @@ -1,7 +1,7 @@ { lib , stdenv , fetchzip -, tex +, texliveMedium , buildDocs ? false }: @@ -17,7 +17,7 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" "doc" "man" ]; - nativeBuildInputs = lib.optionals buildDocs [ tex ]; + nativeBuildInputs = lib.optionals buildDocs [ texliveMedium ]; postPatch = lib.optionalString (!buildDocs) '' substituteInPlace Makefile --replace "all: binaries docs" "all: binaries" diff --git a/pkgs/development/compilers/bluespec/default.nix b/pkgs/development/compilers/bluespec/default.nix index 6637b769dd6..6776ad1ee67 100644 --- a/pkgs/development/compilers/bluespec/default.nix +++ b/pkgs/development/compilers/bluespec/default.nix @@ -19,7 +19,7 @@ , gmp-static , verilog , asciidoctor -, tex +, texliveFull , which }: @@ -88,7 +88,7 @@ in stdenv.mkDerivation rec { ghcWithPackages perl pkg-config - tex + texliveFull ]; makeFlags = [ diff --git a/pkgs/development/compilers/gnu-cobol/default.nix b/pkgs/development/compilers/gnu-cobol/default.nix index 3f1268a9d65..e3233b059dd 100644 --- a/pkgs/development/compilers/gnu-cobol/default.nix +++ b/pkgs/development/compilers/gnu-cobol/default.nix @@ -13,7 +13,7 @@ # docs , help2man , texinfo -, texlive +, texliveBasic # test , writeText }: @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { libtool help2man texinfo - texlive.combined.scheme-basic + texliveBasic ]; buildInputs = [ diff --git a/pkgs/development/compilers/mit-scheme/default.nix b/pkgs/development/compilers/mit-scheme/default.nix index ea5d1548986..1abbac512aa 100644 --- a/pkgs/development/compilers/mit-scheme/default.nix +++ b/pkgs/development/compilers/mit-scheme/default.nix @@ -4,7 +4,7 @@ , makeWrapper , gnum4 , texinfo -, texLive +, texliveSmall , automake , autoconf , libtool @@ -85,7 +85,7 @@ stdenv.mkDerivation { $out/lib/mit-scheme${arch}-${version} ''; - nativeBuildInputs = [ makeWrapper gnum4 texinfo texLive automake ghostscript autoconf libtool ]; + nativeBuildInputs = [ makeWrapper gnum4 texinfo (texliveSmall.withPackages (ps: with ps; [ epsf ps.texinfo ])) automake ghostscript autoconf libtool ]; # XXX: The `check' target doesn't exist. doCheck = false; diff --git a/pkgs/development/embedded/avrdude/default.nix b/pkgs/development/embedded/avrdude/default.nix index 556db9dc303..0f6bd8b6bef 100644 --- a/pkgs/development/embedded/avrdude/default.nix +++ b/pkgs/development/embedded/avrdude/default.nix @@ -1,7 +1,7 @@ { lib, stdenv, fetchFromGitHub, cmake, bison, flex, libusb-compat-0_1, libelf , libftdi1, readline # documentation building is broken on darwin -, docSupport ? (!stdenv.isDarwin), texlive, texinfo, texi2html, unixtools }: +, docSupport ? (!stdenv.isDarwin), texliveMedium, texinfo, texi2html, unixtools }: stdenv.mkDerivation rec { pname = "avrdude"; @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake bison flex ] ++ lib.optionals docSupport [ unixtools.more - texlive.combined.scheme-medium + texliveMedium texinfo texi2html ]; diff --git a/pkgs/development/libraries/cddlib/default.nix b/pkgs/development/libraries/cddlib/default.nix index e0d6149362c..968f32a0af5 100644 --- a/pkgs/development/libraries/cddlib/default.nix +++ b/pkgs/development/libraries/cddlib/default.nix @@ -2,7 +2,7 @@ , fetchFromGitHub , gmp , autoreconfHook -, texlive +, texliveSmall }: stdenv.mkDerivation rec { @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { buildInputs = [gmp]; nativeBuildInputs = [ autoreconfHook - texlive.combined.scheme-small # for building the documentation + texliveSmall # for building the documentation ]; # No actual checks yet (2018-05-05), but maybe one day. # Requested here: https://github.com/cddlib/cddlib/issues/25 diff --git a/pkgs/development/libraries/physics/rivet/default.nix b/pkgs/development/libraries/physics/rivet/default.nix index 8628ca87699..fdfc713d53a 100644 --- a/pkgs/development/libraries/physics/rivet/default.nix +++ b/pkgs/development/libraries/physics/rivet/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchpatch, fastjet, fastjet-contrib, ghostscript, hepmc, imagemagick, less, python3, rsync, texlive, yoda, which, makeWrapper }: +{ lib, stdenv, fetchurl, fetchpatch, fastjet, fastjet-contrib, ghostscript, hepmc, imagemagick, less, python3, rsync, texliveBasic, yoda, which, makeWrapper }: stdenv.mkDerivation rec { pname = "rivet"; @@ -9,8 +9,7 @@ stdenv.mkDerivation rec { hash = "sha256-dbPz1BnKY4jR/S7A7afh+Q8yS5lszwWR9IpdLijczBM="; }; - latex = texlive.combine { inherit (texlive) - scheme-basic + latex = texliveBasic.withPackages (ps: with ps; [ collection-pstricks collection-fontsrecommended l3kernel @@ -24,7 +23,7 @@ stdenv.mkDerivation rec { xcolor xkeyval xstring - ;}; + ]); nativeBuildInputs = [ rsync makeWrapper ]; buildInputs = [ hepmc imagemagick python3 latex python3.pkgs.yoda ]; diff --git a/pkgs/development/libraries/science/networking/ns-3/default.nix b/pkgs/development/libraries/science/networking/ns-3/default.nix index f515253026b..dd28553d60e 100644 --- a/pkgs/development/libraries/science/networking/ns-3/default.nix +++ b/pkgs/development/libraries/science/networking/ns-3/default.nix @@ -39,7 +39,7 @@ , dia , tetex ? null , ghostscript ? null -, texlive ? null +, texliveMedium ? null # generates python bindings , pythonSupport ? true @@ -72,7 +72,7 @@ stdenv.mkDerivation rec { # ncurses is a hidden dependency of waf when checking python buildInputs = lib.optionals pythonSupport [ castxml ncurses ] ++ lib.optionals enableDoxygen [ doxygen graphviz imagemagick ] - ++ lib.optionals withManual [ dia tetex ghostscript imagemagick texlive.combined.scheme-medium ] + ++ lib.optionals withManual [ dia tetex ghostscript imagemagick texliveMedium ] ++ [ libxml2 pythonEnv diff --git a/pkgs/development/python-modules/dot2tex/default.nix b/pkgs/development/python-modules/dot2tex/default.nix index 15e0c655f80..f722c80bdad 100644 --- a/pkgs/development/python-modules/dot2tex/default.nix +++ b/pkgs/development/python-modules/dot2tex/default.nix @@ -6,7 +6,7 @@ , pyparsing , graphviz , pytestCheckHook -, texlive +, texliveSmall }: buildPythonPackage rec { @@ -36,9 +36,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook - (texlive.combine { - inherit (texlive) scheme-small preview pstricks; - }) + (texliveSmall.withPackages (ps: with ps; [ preview pstricks ])) ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pypandoc/default.nix b/pkgs/development/python-modules/pypandoc/default.nix index ac7f88d4857..ad81b8e7f06 100644 --- a/pkgs/development/python-modules/pypandoc/default.nix +++ b/pkgs/development/python-modules/pypandoc/default.nix @@ -6,7 +6,7 @@ , poetry-core , pythonOlder , substituteAll -, texlive +, texliveSmall }: buildPythonPackage rec { @@ -37,7 +37,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - texlive.combined.scheme-small + texliveSmall pandocfilters ]; diff --git a/pkgs/development/python-modules/scapy/default.nix b/pkgs/development/python-modules/scapy/default.nix index 1a5f8037113..4f2c9cad8e3 100644 --- a/pkgs/development/python-modules/scapy/default.nix +++ b/pkgs/development/python-modules/scapy/default.nix @@ -5,7 +5,7 @@ , withCryptography ? true, cryptography , withVoipSupport ? true, sox , withPlottingSupport ? true, matplotlib -, withGraphicsSupport ? false, pyx, texlive, graphviz, imagemagick +, withGraphicsSupport ? false, pyx, texliveBasic, graphviz, imagemagick , withManufDb ? false, wireshark , libpcap # 2D/3D graphics and graphs TODO: VPython @@ -48,7 +48,7 @@ buildPythonPackage rec { ++ lib.optional withCryptography cryptography ++ lib.optional withVoipSupport sox ++ lib.optional withPlottingSupport matplotlib - ++ lib.optionals withGraphicsSupport [ pyx texlive.combined.scheme-basic graphviz imagemagick ]; + ++ lib.optionals withGraphicsSupport [ pyx texliveBasic graphviz imagemagick ]; # Running the tests seems too complicated: doCheck = false; diff --git a/pkgs/development/python-modules/sphinxcontrib-tikz/default.nix b/pkgs/development/python-modules/sphinxcontrib-tikz/default.nix index 62e7df21ab8..4e47298c806 100644 --- a/pkgs/development/python-modules/sphinxcontrib-tikz/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-tikz/default.nix @@ -3,7 +3,7 @@ , fetchPypi , sphinx , pdf2svg -, texLive +, texliveSmall }: buildPythonPackage rec { @@ -17,7 +17,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace sphinxcontrib/tikz.py \ - --replace "config.latex_engine" "'${texLive}/bin/pdflatex'" \ + --replace "config.latex_engine" "'${texliveSmall.withPackages (ps: with ps; [ standalone pgfplots ])}/bin/pdflatex'" \ --replace "system(['pdf2svg'" "system(['${pdf2svg}/bin/pdf2svg'" ''; diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index 8d20ce0b286..d9c52caa089 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -546,7 +546,7 @@ let AMOUNTAIN = [ pkgs.gsl ]; Rsymphony = with pkgs; [ pkg-config doxygen graphviz subversion ]; tcltk2 = with pkgs; [ tcl tk ]; - tikzDevice = with pkgs; [ which texlive.combined.scheme-medium ]; + tikzDevice = with pkgs; [ which texliveMedium ]; gridGraphics = [ pkgs.which ]; adimpro = with pkgs; [ which xorg.xdpyinfo ]; rsvg = [ pkgs.librsvg.dev ]; diff --git a/pkgs/development/rocm-modules/5/migraphx/default.nix b/pkgs/development/rocm-modules/5/migraphx/default.nix index dc84e526823..3283ffc10cd 100644 --- a/pkgs/development/rocm-modules/5/migraphx/default.nix +++ b/pkgs/development/rocm-modules/5/migraphx/default.nix @@ -22,7 +22,7 @@ , blaze , cppcheck , rocm-device-libs -, texlive +, texliveSmall , doxygen , sphinx , docutils @@ -33,8 +33,7 @@ }: let - latex = lib.optionalAttrs buildDocs texlive.combine { - inherit (texlive) scheme-small + latex = lib.optionalAttrs buildDocs (texliveSmall.withPackages (ps: with ps; [ latexmk tex-gyre fncychap @@ -45,8 +44,8 @@ let tabulary varwidth titlesec - epstopdf; - }; + epstopdf + ])); in stdenv.mkDerivation (finalAttrs: { pname = "migraphx"; version = "5.7.1"; diff --git a/pkgs/development/rocm-modules/5/miopen/default.nix b/pkgs/development/rocm-modules/5/miopen/default.nix index a9a1cd5abe0..4a0cf92188a 100644 --- a/pkgs/development/rocm-modules/5/miopen/default.nix +++ b/pkgs/development/rocm-modules/5/miopen/default.nix @@ -22,7 +22,7 @@ , bzip2 , lbzip2 , nlohmann_json -, texlive +, texliveSmall , doxygen , sphinx , zlib @@ -71,8 +71,7 @@ let ''; }; - latex = lib.optionalAttrs buildDocs texlive.combine { - inherit (texlive) scheme-small + latex = lib.optionalAttrs buildDocs (texliveSmall.withPackages (ps: with ps; [ latexmk tex-gyre fncychap @@ -82,8 +81,8 @@ let needspace tabulary varwidth - titlesec; - }; + titlesec + ])); gfx900 = runCommand "miopen-gfx900.kdb" { preferLocalBuild = true; } '' ${lbzip2}/bin/lbzip2 -ckd ${src}/src/kernels/gfx900.kdb.bz2 > $out diff --git a/pkgs/development/rocm-modules/5/miopengemm/default.nix b/pkgs/development/rocm-modules/5/miopengemm/default.nix index bda94cee61b..f56e42da59d 100644 --- a/pkgs/development/rocm-modules/5/miopengemm/default.nix +++ b/pkgs/development/rocm-modules/5/miopengemm/default.nix @@ -6,7 +6,7 @@ , rocm-cmake , clr , clblast -, texlive +, texliveSmall , doxygen , sphinx , openblas @@ -17,8 +17,7 @@ }: let - latex = lib.optionalAttrs buildDocs texlive.combine { - inherit (texlive) scheme-small + latex = lib.optionalAttrs buildDocs (texliveSmall.withPackages (ps: with ps; [ latexmk tex-gyre fncychap @@ -28,8 +27,8 @@ let needspace tabulary varwidth - titlesec; - }; + titlesec + ])); in stdenv.mkDerivation (finalAttrs: { pname = "miopengemm"; version = "5.5.0"; diff --git a/pkgs/development/rocm-modules/5/rdc/default.nix b/pkgs/development/rocm-modules/5/rdc/default.nix index abdd121bce3..8b447454fc4 100644 --- a/pkgs/development/rocm-modules/5/rdc/default.nix +++ b/pkgs/development/rocm-modules/5/rdc/default.nix @@ -11,15 +11,14 @@ , openssl , doxygen , graphviz -, texlive +, texliveSmall , gtest , buildDocs ? true , buildTests ? false }: let - latex = lib.optionalAttrs buildDocs texlive.combine { - inherit (texlive) scheme-small + latex = lib.optionalAttrs buildDocs (texliveSmall.withPackages (ps: with ps; [ changepage latexmk varwidth @@ -37,8 +36,8 @@ let etoc helvetic wasy - courier; - }; + courier + ])); in stdenv.mkDerivation (finalAttrs: { pname = "rdc"; version = "5.7.1"; diff --git a/pkgs/development/rocm-modules/5/rocdbgapi/default.nix b/pkgs/development/rocm-modules/5/rocdbgapi/default.nix index aef89d2330d..dbc3f647815 100644 --- a/pkgs/development/rocm-modules/5/rocdbgapi/default.nix +++ b/pkgs/development/rocm-modules/5/rocdbgapi/default.nix @@ -8,15 +8,14 @@ , rocm-comgr , rocm-runtime , hwdata -, texlive +, texliveSmall , doxygen , graphviz , buildDocs ? true }: let - latex = lib.optionalAttrs buildDocs texlive.combine { - inherit (texlive) scheme-small + latex = lib.optionalAttrs buildDocs (texliveSmall.withPackages (ps: with ps; [ changepage latexmk varwidth @@ -34,8 +33,8 @@ let etoc helvetic wasy - courier; - }; + courier + ])); in stdenv.mkDerivation (finalAttrs: { pname = "rocdbgapi"; version = "5.7.1"; diff --git a/pkgs/development/tools/literate-programming/nuweb/default.nix b/pkgs/development/tools/literate-programming/nuweb/default.nix index 1dce8caeeb4..9bc67375e26 100644 --- a/pkgs/development/tools/literate-programming/nuweb/default.nix +++ b/pkgs/development/tools/literate-programming/nuweb/default.nix @@ -1,4 +1,4 @@ -{lib, stdenv, fetchurl, tex}: +{lib, stdenv, fetchurl, texliveMedium}: stdenv.mkDerivation rec { @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "sha256-JVqPYkYPXBT0xLNWuW4DV6N6ZlKuBYQGT46frhnpU64="; }; - buildInputs = [ tex ]; + buildInputs = [ texliveMedium ]; patchPhase = '' sed -ie 's|nuweb -r|./nuweb -r|' Makefile diff --git a/pkgs/development/tools/parsing/ragel/default.nix b/pkgs/development/tools/parsing/ragel/default.nix index f359ed9c168..db5590ccbb9 100644 --- a/pkgs/development/tools/parsing/ragel/default.nix +++ b/pkgs/development/tools/parsing/ragel/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fig2dev, tex, ghostscript, colm +{ lib, stdenv, fetchurl, fig2dev, texliveSmall, ghostscript, colm , build-manual ? false }: @@ -13,7 +13,7 @@ let inherit sha256; }; - buildInputs = lib.optionals build-manual [ fig2dev ghostscript tex ]; + buildInputs = lib.optionals build-manual [ fig2dev ghostscript texliveSmall ]; preConfigure = lib.optionalString build-manual '' sed -i "s/build_manual=no/build_manual=yes/g" DIST |