diff options
author | Robin Gloster <mail@glob.in> | 2016-03-15 01:44:24 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-03-15 01:44:24 +0000 |
commit | 3f45f0948d6fe158bed063adb66850ded0ba4861 (patch) | |
tree | ac717689d391d3f5333132fc34e4b2aed829414c /pkgs/tools/typesetting/pygmentex/default.nix | |
parent | a9b942c0617b1cd5f0732d05eadad0114a178f37 (diff) | |
parent | d227d9a70e41d65e4e6f4ac75a9d243c5a19fa85 (diff) | |
download | nixlib-3f45f0948d6fe158bed063adb66850ded0ba4861.tar nixlib-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.gz nixlib-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.bz2 nixlib-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.lz nixlib-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.xz nixlib-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.zst nixlib-3f45f0948d6fe158bed063adb66850ded0ba4861.zip |
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
Diffstat (limited to 'pkgs/tools/typesetting/pygmentex/default.nix')
-rw-r--r-- | pkgs/tools/typesetting/pygmentex/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/pygmentex/default.nix b/pkgs/tools/typesetting/pygmentex/default.nix new file mode 100644 index 000000000000..da029639c3d2 --- /dev/null +++ b/pkgs/tools/typesetting/pygmentex/default.nix @@ -0,0 +1,45 @@ +{ stdenv, fetchzip, python2Packages }: + +python2Packages.buildPythonApplication rec { + name = "pygmentex-${version}"; + version = "0.8"; + + src = fetchzip { + url = "http://mirrors.ctan.org/macros/latex/contrib/pygmentex.zip"; + sha256 = "1nm19pvhlv51mv2sdankndhw64ys9r7ch6szzd6i4jz8zr86kn9v"; + }; + + pythonPath = [ python2Packages.pygments python2Packages.chardet ]; + + buildPhase = ":"; + + doCheck = false; + + installPhase = '' + + mkdir -p $out/bin + cp -a pygmentex.py $out/bin + ''; + + meta = with stdenv.lib; { + homepage = https://www.ctan.org/pkg/pygmentex; + description = "Auxiliary tool for typesetting code listings in LaTeX documents using Pygments"; + longDescription = '' + PygmenTeX is a Python-based LaTeX package that can be used for + typesetting code listings in a LaTeX document using Pygments. + + Pygments is a generic syntax highlighter for general use in all kinds of + software such as forum systems, wikis or other applications that need to + prettify source code. + + This package installs just the script needed to process code listings + snippets extracted from the a LaTeX document by the pygmentex LaTeX + package. In order to use it effectivelly the texlive package pygmentex + also has to be installed. This can be done by adding pygmentex to + texlive.combine. + ''; + license = licenses.lppl13c; + maintainers = with maintainers; [ romildo ]; + platforms = platforms.unix; + }; +} |