Merge 'staging' into multiple-outputs
Conflicts: pkgs/applications/audio/flac/default.nix pkgs/build-support/gcc-wrapper/builder.sh pkgs/development/libraries/apr-util/default.nix pkgs/development/libraries/apr/default.nix pkgs/development/libraries/atk/default.nix pkgs/development/libraries/freetype/default.nix pkgs/development/libraries/gdk-pixbuf/default.nix pkgs/development/libraries/glib/default.nix pkgs/development/libraries/glibc/2.17/builder.sh pkgs/development/libraries/glibc/2.17/locales.nix pkgs/development/libraries/libjpeg/default.nix pkgs/development/libraries/libogg/default.nix pkgs/development/libraries/libsamplerate/default.nix pkgs/development/libraries/libtiff/default.nix pkgs/development/libraries/libvorbis/default.nix pkgs/development/libraries/mesa/default.nix pkgs/development/libraries/pango/default.nix pkgs/development/web/nodejs/default.nix pkgs/os-specific/linux/pam/default.nix pkgs/os-specific/linux/systemd/default.nix pkgs/stdenv/generic/setup.sh pkgs/stdenv/linux/default.nix pkgs/top-level/all-packages.nix pkgs/top-level/release-small.nix
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
, gnused ? null
|
||||
, coreutils ? null
|
||||
|
||||
# if true, enable all the below filters and backends
|
||||
, enableExtraPlugins ? false
|
||||
|
||||
# unzip is needed to extract filter and backend plugins
|
||||
, unzip ? null
|
||||
# filters
|
||||
, enableDitaaFilter ? false, jre ? null
|
||||
@@ -58,17 +62,26 @@ assert enableStandardFeatures ->
|
||||
coreutils != null;
|
||||
|
||||
# filters
|
||||
assert (enableDitaaFilter || enableMscgenFilter || enableDiagFilter || enableQrcodeFilter || enableAafigureFilter) -> unzip != null;
|
||||
assert enableDitaaFilter -> jre != null;
|
||||
assert enableMscgenFilter -> mscgen != null;
|
||||
assert enableDiagFilter -> blockdiag != null && seqdiag != null && actdiag != null && nwdiag != null;
|
||||
assert enableMatplotlibFilter -> matplotlib != null && numpy != null;
|
||||
assert enableAafigureFilter -> aafigure != null && recursivePthLoader != null;
|
||||
assert enableExtraPlugins || enableDitaaFilter || enableMscgenFilter || enableDiagFilter || enableQrcodeFilter || enableAafigureFilter -> unzip != null;
|
||||
assert enableExtraPlugins || enableDitaaFilter -> jre != null;
|
||||
assert enableExtraPlugins || enableMscgenFilter -> mscgen != null;
|
||||
assert enableExtraPlugins || enableDiagFilter -> blockdiag != null && seqdiag != null && actdiag != null && nwdiag != null;
|
||||
assert enableExtraPlugins || enableMatplotlibFilter -> matplotlib != null && numpy != null;
|
||||
assert enableExtraPlugins || enableAafigureFilter -> aafigure != null && recursivePthLoader != null;
|
||||
# backends
|
||||
assert (enableDeckjsBackend || enableOdfBackend) -> unzip != null;
|
||||
assert enableExtraPlugins || enableDeckjsBackend || enableOdfBackend -> unzip != null;
|
||||
|
||||
let
|
||||
|
||||
_enableDitaaFilter = enableExtraPlugins || enableDitaaFilter;
|
||||
_enableMscgenFilter = enableExtraPlugins || enableMscgenFilter;
|
||||
_enableDiagFilter = enableExtraPlugins || enableDiagFilter;
|
||||
_enableQrcodeFilter = enableExtraPlugins || enableQrcodeFilter;
|
||||
_enableMatplotlibFilter = enableExtraPlugins || enableMatplotlibFilter;
|
||||
_enableAafigureFilter = enableExtraPlugins || enableAafigureFilter;
|
||||
_enableDeckjsBackend = enableExtraPlugins || enableDeckjsBackend;
|
||||
_enableOdfBackend = enableExtraPlugins || enableOdfBackend;
|
||||
|
||||
#
|
||||
# filters
|
||||
#
|
||||
@@ -128,11 +141,11 @@ let
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "asciidoc-8.6.8";
|
||||
name = "asciidoc-8.6.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/asciidoc/${name}.tar.gz";
|
||||
sha256 = "ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4";
|
||||
sha256 = "1w71nk527lq504njmaf0vzr93pgahkgzzxzglrq6bay8cw2rvnvq";
|
||||
};
|
||||
|
||||
buildInputs = [ python unzip ];
|
||||
@@ -141,17 +154,17 @@ stdenv.mkDerivation rec {
|
||||
patchPhase = with stdenv.lib; ''
|
||||
mkdir -p "$out/etc/asciidoc/filters"
|
||||
mkdir -p "$out/etc/asciidoc/backends"
|
||||
'' + optionalString enableDitaaFilter ''
|
||||
'' + optionalString _enableDitaaFilter ''
|
||||
echo "Extracting ditaa filter"
|
||||
unzip -d "$out/etc/asciidoc/filters/ditaa" "${ditaaFilterSrc}"
|
||||
sed -i -e "s|java -jar|${jre}/bin/java -jar|" \
|
||||
"$out/etc/asciidoc/filters/ditaa/ditaa2img.py"
|
||||
'' + optionalString enableMscgenFilter ''
|
||||
'' + optionalString _enableMscgenFilter ''
|
||||
echo "Extracting mscgen filter"
|
||||
unzip -d "$out/etc/asciidoc/filters/mscgen" "${mscgenFilterSrc}"
|
||||
sed -i -e "s|filter-wrapper.py mscgen|filter-wrapper.py ${mscgen}/bin/mscgen|" \
|
||||
"$out/etc/asciidoc/filters/mscgen/mscgen-filter.conf"
|
||||
'' + optionalString enableDiagFilter ''
|
||||
'' + optionalString _enableDiagFilter ''
|
||||
echo "Extracting diag filter"
|
||||
unzip -d "$out/etc/asciidoc/filters/diag" "${diagFilterSrc}"
|
||||
sed -i \
|
||||
@@ -161,12 +174,12 @@ stdenv.mkDerivation rec {
|
||||
-e "s|filter='nwdiag|filter=\'${nwdiag}/bin/nwdiag|" \
|
||||
-e "s|filter='packetdiag|filter=\'${nwdiag}/bin/packetdiag|" \
|
||||
"$out/etc/asciidoc/filters/diag/diag-filter.conf"
|
||||
'' + optionalString enableQrcodeFilter ''
|
||||
'' + optionalString _enableQrcodeFilter ''
|
||||
echo "Extracting qrcode filter"
|
||||
unzip -d "$out/etc/asciidoc/filters/qrcode" "${qrcodeFilterSrc}"
|
||||
sed -i -e "s|systemcmd('qrencode|systemcmd('${qrencode}/bin/qrencode|" \
|
||||
"$out/etc/asciidoc/filters/qrcode/qrcode2img.py"
|
||||
'' + optionalString enableMatplotlibFilter ''
|
||||
'' + optionalString _enableMatplotlibFilter ''
|
||||
echo "Extracting mpl (matplotlib) filter"
|
||||
mkdir -p "$out/etc/asciidoc/filters/mpl"
|
||||
tar xvf "${matplotlibFilterSrc}" -C "$out/etc/asciidoc/filters/mpl" --strip-components=1
|
||||
@@ -177,7 +190,7 @@ stdenv.mkDerivation rec {
|
||||
numpy_path="$(toPythonPath ${numpy})"
|
||||
sed -i "/^import.*sys/asys.path.append(\"$matplotlib_path\"); sys.path.append(\"$numpy_path\");" \
|
||||
"$out/etc/asciidoc/filters/mpl/mplw.py"
|
||||
'' + optionalString enableAafigureFilter ''
|
||||
'' + optionalString _enableAafigureFilter ''
|
||||
echo "Extracting aafigure filter"
|
||||
unzip -d "$out/etc/asciidoc/filters/aafigure" "${aafigureFilterSrc}"
|
||||
# Add aafigure to sys.path (and it needs recursive-pth-loader)
|
||||
@@ -185,10 +198,10 @@ stdenv.mkDerivation rec {
|
||||
aafigure_path="$(toPythonPath ${aafigure})"
|
||||
sed -i "/^import.*sys/asys.path.append(\"$pth_loader_path\"); sys.path.append(\"$aafigure_path\"); import sitecustomize" \
|
||||
"$out/etc/asciidoc/filters/aafigure/aafig2img.py"
|
||||
'' + optionalString enableDeckjsBackend ''
|
||||
'' + optionalString _enableDeckjsBackend ''
|
||||
echo "Extracting deckjs backend"
|
||||
unzip -d "$out/etc/asciidoc/backends/deckjs" "${deckjsBackendSrc}"
|
||||
'' + optionalString enableOdfBackend ''
|
||||
'' + optionalString _enableOdfBackend ''
|
||||
echo "Extracting odf backend (odt + odp)"
|
||||
unzip -d "$out/etc/asciidoc/backends/odt" "${odtBackendSrc}"
|
||||
unzip -d "$out/etc/asciidoc/backends/odp" "${odpBackendSrc}"
|
||||
@@ -257,7 +270,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
homepage = "http://www.methods.co.nz/asciidoc/";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
hydraPlatforms = platforms.linux;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
||||
|
||||
40
pkgs/tools/typesetting/biber/default.nix
Normal file
40
pkgs/tools/typesetting/biber/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ stdenv, fetchurl, buildPerlPackage, autovivification, BusinessISBN
|
||||
, BusinessISMN, BusinessISSN, ConfigAutoConf, DataCompare, DataDump, DateSimple
|
||||
, EncodeEUCJPASCII, EncodeHanExtra, EncodeJIS2K, ExtUtilsLibBuilder
|
||||
, FileSlurp, IPCRun3, Log4Perl, LWPProtocolHttps, ListAllUtils, ListMoreUtils
|
||||
, ModuleBuild, MozillaCA, ReadonlyXS, RegexpCommon, TextBibTeX, UnicodeCollate
|
||||
, UnicodeLineBreak, URI, XMLLibXMLSimple, XMLLibXSLT, XMLWriter }:
|
||||
|
||||
let
|
||||
version = "1.8";
|
||||
pn = "biblatex-biber";
|
||||
in
|
||||
buildPerlPackage {
|
||||
name = "biber-${version}";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/${pn}/${pn}/${version}/${pn}.tar.gz";
|
||||
sha256 = "0ffry64pdvg5g487r7qab5b3cs4kq8rq8n3bymxrr1qh3mp79k4n";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
autovivification BusinessISBN BusinessISMN BusinessISSN ConfigAutoConf
|
||||
DataCompare DataDump DateSimple EncodeEUCJPASCII EncodeHanExtra EncodeJIS2K
|
||||
ExtUtilsLibBuilder FileSlurp IPCRun3 Log4Perl LWPProtocolHttps ListAllUtils
|
||||
ListMoreUtils ModuleBuild MozillaCA ReadonlyXS RegexpCommon TextBibTeX
|
||||
UnicodeCollate UnicodeLineBreak URI XMLLibXMLSimple XMLLibXSLT XMLWriter
|
||||
];
|
||||
preConfigure = "touch Makefile.PL";
|
||||
buildPhase = "perl Build.PL --prefix=$out; ./Build build";
|
||||
checkPhase = "./Build test";
|
||||
installPhase = "./Build install";
|
||||
|
||||
# Tests seem to be broken
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Backend for BibLaTeX";
|
||||
license = "perl";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.ttuegel ];
|
||||
};
|
||||
}
|
||||
28
pkgs/tools/typesetting/djvu2pdf/default.nix
Normal file
28
pkgs/tools/typesetting/djvu2pdf/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{stdenv, fetchurl, pkgconfig, djvulibre, ghostscript }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.9.2";
|
||||
name = "djvu2pdf-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://0x2a.at/site/projects/djvu2pdf/djvu2pdf-${version}.tar.gz";
|
||||
sha256 = "0v2ax30m7j1yi4m02nzn9rc4sn4vzqh5vywdh96r64j4pwvn5s5g";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig ];
|
||||
propagatedUserEnvPkgs = [ djvulibre ghostscript ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -p djvu2pdf $out/bin
|
||||
mkdir -p $out/man/man1
|
||||
cp -p djvu2pdf.1.gz $out/man/man1
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Creates djvu files from PDF files";
|
||||
homepage = http://0x2a.at/s/projects/djvu2pdf;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
inherit version;
|
||||
};
|
||||
}
|
||||
47
pkgs/tools/typesetting/docbook2odf/default.nix
Normal file
47
pkgs/tools/typesetting/docbook2odf/default.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ stdenv, fetchurl, perl, makeWrapper, zip, libxslt, PerlMagick }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "docbook2odf-0.244";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://open.comsultia.com/docbook2odf/dwn/${name}.tar.gz";
|
||||
sha256 = "10k44g0qqa37k30pfj8vz95j6zdzz0nmnqjq1lyahfs2h4glzgwb";
|
||||
};
|
||||
|
||||
buildInputs = [ perl makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin/"
|
||||
mkdir -p "$out/share/docbook2odf/"
|
||||
mkdir -p "$out/share/doc/docbook2odf/"
|
||||
mkdir -p "$out/share/man/man1/"
|
||||
mkdir -p "$out/share/applications/"
|
||||
|
||||
cp utils/docbook2odf "$out/bin/"
|
||||
cp docs/docbook2odf.1 "$out/share/man/man1/"
|
||||
cp -r examples/ "$out/share/doc/docbook2odf/"
|
||||
cp -r xsl/ "$out/share/docbook2odf/"
|
||||
cp bindings/desktop/docbook2odf.desktop "$out/share/applications/"
|
||||
|
||||
sed -i "s|/usr/share/docbook2odf|$out/share/docbook2odf|" "$out/bin/docbook2odf"
|
||||
|
||||
wrapProgram "$out/bin/docbook2odf" \
|
||||
--prefix PATH : "${zip}/bin:${libxslt}/bin" \
|
||||
--prefix PERL5PATH : "${stdenv.lib.makePerlPath [PerlMagick]}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Convert DocBook to OpenDocument Format (ODF)";
|
||||
longDescription = ''
|
||||
Docbook2odf is a toolkit that automaticaly converts DocBook to OASIS
|
||||
OpenDocument (ODF, the ISO standardized format used for texts,
|
||||
spreadsheets and presentations). Conversion is based on a XSLT which
|
||||
makes it easy to convert DocBook->ODF, ODT, ODS and ODP as all these
|
||||
documents are XML based.
|
||||
'';
|
||||
homepage = http://open.comsultia.com/docbook2odf/;
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
||||
@@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
|
||||
into the traditional Unix man page format and the GNU Texinfo
|
||||
format.
|
||||
'';
|
||||
license = "MIT-style";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
homepage = http://docbook2x.sourceforge.net/;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,34 +4,28 @@ stdenv.mkDerivation rec {
|
||||
name = "fop-1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://apache.uib.no/xmlgraphics/fop/source/${name}-src.tar.gz";
|
||||
url = "mirror://apache/xmlgraphics/fop/source/${name}-src.tar.gz";
|
||||
sha256 = "08i56d57w5dl5bqchr34x9165hvi5h4bhiflxhi0a4wd56rlq5jq";
|
||||
};
|
||||
|
||||
buildInputs = [ ant jdk ];
|
||||
|
||||
buildPhase = ''
|
||||
ant
|
||||
'';
|
||||
buildPhase = "ant";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
mkdir -p "$out/lib"
|
||||
mkdir -p "$out/share/doc/fop"
|
||||
mkdir -p $out/bin $out/lib $out/share/doc/fop
|
||||
|
||||
cp build/*.jar lib/*.jar "$out/lib/"
|
||||
cp -r README examples/ "$out/share/doc/fop/"
|
||||
cp build/*.jar lib/*.jar $out/lib/
|
||||
cp -r README examples/ $out/share/doc/fop/
|
||||
|
||||
# There is a fop script in the source archive, but it has many impurities.
|
||||
# Instead of patching out 90 % of the script, we write our own.
|
||||
cat > "$out/bin/fop" <<EOF
|
||||
#!${stdenv.shell}
|
||||
java_exec_args="-Djava.awt.headless=true"
|
||||
# Note the wildcard; it will be passed to java and java will expand it
|
||||
LOCALCLASSPATH="$out/lib/*"
|
||||
exec "${jdk}/bin/java" \$java_exec_args -classpath "\$LOCALCLASSPATH" org.apache.fop.cli.Main "\$@"
|
||||
exec ${jdk.jre}/bin/java \$java_exec_args -classpath "$out/lib/*" org.apache.fop.cli.Main "\$@"
|
||||
EOF
|
||||
chmod a+x "$out/bin/fop"
|
||||
chmod a+x $out/bin/fop
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -27,6 +27,6 @@ stdenv.mkDerivation {
|
||||
meta = {
|
||||
description = "Documentation production system for software manuals";
|
||||
homepage = http://www.chiark.greenend.org.uk/~sgtatham/halibut/;
|
||||
license = "free";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, filepath, mtl, regexCompat, texLive }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
@@ -16,8 +18,9 @@ cabal.mkDerivation (self: {
|
||||
meta = {
|
||||
homepage = "http://www.andres-loeh.de/lhs2tex/";
|
||||
description = "Preprocessor for typesetting Haskell sources with LaTeX";
|
||||
license = "GPL";
|
||||
license = self.stdenv.lib.licenses.gpl2;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
hydraPlatforms = self.stdenv.lib.platforms.linux;
|
||||
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
||||
};
|
||||
})
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{stdenv, fetchurl, ghostscript}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lout-3.39";
|
||||
name = "lout-3.40";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||
# XXX: We could add the CTAN mirrors
|
||||
# (see http://www.ctan.org/tex-archive/support/lout/).
|
||||
];
|
||||
sha256 = "12gkyqrn0kaa8xq7sc7v3wm407pz2fxg9ngc75aybhi5z825b9vq";
|
||||
sha256 = "1gb8vb1wl7ikn269dd1c7ihqhkyrwk19jwx5kd0rdvbk6g7g25ix";
|
||||
};
|
||||
|
||||
buildInputs = [ ghostscript ];
|
||||
@@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||
# Wiki: http://lout.wiki.sourceforge.net/
|
||||
homepage = http://savannah.nongnu.org/projects/lout/;
|
||||
|
||||
license = "GPLv3+";
|
||||
license = stdenv.lib.licenses.gpl3Plus;
|
||||
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||
|
||||
32
pkgs/tools/typesetting/pdfgrep/default.nix
Normal file
32
pkgs/tools/typesetting/pdfgrep/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ fetchurl, stdenv, pkgconfig, poppler, poppler_data, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pdfgrep-${version}";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://downloads.sourceforge.net/project/pdfgrep/${version}/${name}.tar.gz";
|
||||
sha256 = "6e8bcaf8b219e1ad733c97257a97286a94124694958c27506b2ea7fc8e532437";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig poppler poppler_data makeWrapper ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e "s%cpp/poppler-document.h%poppler/cpp/poppler-document.h%" pdfgrep.cc
|
||||
sed -i -e "s%cpp/poppler-page.h%poppler/cpp/poppler-page.h%" pdfgrep.cc
|
||||
'';
|
||||
|
||||
# workarround since it can't be hardcoded in pdfgrep
|
||||
preFixup = ''
|
||||
wrapProgram "$out/bin/pdfgrep" \
|
||||
--set POPPLER_DATADIR "${poppler_data}/share/poppler"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "a tool to search text in PDF files";
|
||||
homepage = http://pdfgrep.sourceforge.net/;
|
||||
license = "free";
|
||||
maintainers = with stdenv.lib.maintainers; [qknight];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
@@ -5,4 +5,8 @@
|
||||
url = http://www.warwick.ac.uk/go/pdfjam/pdfjam_1.20.tgz;
|
||||
sha256 = "05g3mx7mb6h15ivbv0f53r369xphy8ad8a2xblpnk9mrnlrkaxy9";
|
||||
};
|
||||
meta = with stdenv.lib; {
|
||||
platforms = platforms.linux;
|
||||
maintainers = maintainers.mornfall;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation {
|
||||
meta = {
|
||||
description = "Simple tool for doing everyday things with PDF documents";
|
||||
homepage = http://www.accesspdf.com/pdftk/;
|
||||
license = "free";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
maintainers = with stdenv.lib.maintainers; [viric];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||
of pdfLaTeX to produce PDF documents.
|
||||
'';
|
||||
|
||||
license = "GPLv2+";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
|
||||
homepage = http://www.pps.jussieu.fr/~beffara/soft/rubber/;
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
stdenv.mkDerivation ( rec {
|
||||
pname = "auctex";
|
||||
version = "11.85";
|
||||
version = "11.87";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
meta = {
|
||||
@@ -12,7 +12,7 @@ stdenv.mkDerivation ( rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/${pname}/${name}.tar.gz";
|
||||
sha256 = "aebbea00431f8fd1e6be6519d9cc28e974942000737f956027da2c952a6d304e";
|
||||
sha256 = "1wjwpmvhpj8q0zd78lj7vyzqhx4rbdhkflslylkzgnw5wllp5mb3";
|
||||
};
|
||||
|
||||
buildInputs = [ emacs texLive ];
|
||||
|
||||
@@ -55,6 +55,6 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
description = "A program to convert DocBook to DVI, PostScript or PDF via LaTeX or ConTeXt";
|
||||
homepage = http://dblatex.sourceforge.net/;
|
||||
license = "GPL";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pgf-1.10";
|
||||
name = "pgf-1.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/pgf/pgf-1.10.tar.gz;
|
||||
sha256 = "1y605wmjxryphh0y5zgzvdq6xjxb2bjb95j36d4wg1a7n93ksswl";
|
||||
url = mirror://sourceforge/pgf/pgf-1.18.tar.gz;
|
||||
sha256 = "0s6b8rx9yfxcjjg18vx1mphnwbd28fl5lnq0dasjz40pp3ypwdjv";
|
||||
};
|
||||
|
||||
buildPhase = "true";
|
||||
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
|
||||
buildPhase = "true";
|
||||
|
||||
installPhase = "
|
||||
ensureDir $out/share/texmf-nix
|
||||
mkdir -p $out/share/texmf-nix
|
||||
cp -prd * $out/share/texmf-nix
|
||||
";
|
||||
}
|
||||
|
||||
@@ -30,6 +30,6 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "http://tug.org/tex4ht/";
|
||||
description = "a system to convert (La)TeX documents to HTML and various other formats";
|
||||
license = "LPPL"; # LaTeX Project Public License
|
||||
license = "LPPL-1.2"; # LaTeX Project Public License
|
||||
};
|
||||
}
|
||||
|
||||
@@ -68,6 +68,8 @@ rec {
|
||||
done
|
||||
'' ) [ "minInit" "defEnsureDir" "addInputs" ];
|
||||
|
||||
preferLocalBuild = true;
|
||||
|
||||
meta = {
|
||||
description = "TeX distribution directory";
|
||||
longDescription = ''
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
args: with args;
|
||||
rec {
|
||||
name = "texlive-beamer-2012";
|
||||
name = "texlive-beamer-2013";
|
||||
src = fetchurl {
|
||||
url = mirror://debian/pool/main/l/latex-beamer/latex-beamer_3.10.orig.tar.gz;
|
||||
sha256 = "1vk7nr1lxinyj941nz5xzcpzircd60s8sgmq7jd2gqmf5ynd27nx";
|
||||
url = mirror://debian/pool/main/l/latex-beamer/latex-beamer_3.24.orig.tar.gz;
|
||||
sha256 = "0rzjlbs67kzmvlh7lwga4yxgddvrvfkkhhx1ajdn4lqy2w9zxiv8";
|
||||
};
|
||||
|
||||
buildInputs = [texLive];
|
||||
@@ -20,5 +20,6 @@ rec {
|
||||
|
||||
meta = {
|
||||
description = "Extra components for TeXLive: beamer class";
|
||||
maintainers = stdenv.lib.maintainers.mornfall;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -30,6 +30,6 @@ rec {
|
||||
maintainers = [ args.lib.maintainers.raskin ];
|
||||
|
||||
# Actually, arch-independent..
|
||||
platforms = [] ;
|
||||
hydraPlatforms = [];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,23 +1,28 @@
|
||||
args : with args;
|
||||
rec {
|
||||
src = fetchurl {
|
||||
url = mirror://debian/pool/main/t/texlive-bin/texlive-bin_2013.20130729.30972.orig.tar.xz;
|
||||
sha256 = "1idgyim6r4bi3id245k616qrdarfh65xv3gi2psarqqmsw504yhd";
|
||||
url = mirror://debian/pool/main/t/texlive-bin/texlive-bin_2014.20140528.34243.orig.tar.xz;
|
||||
sha256 = "0nh8hfayyf60nm4z8zyclrbc3792c62azgsvrwxnl28iq223200s";
|
||||
};
|
||||
|
||||
texmfVersion = "2014.20140717";
|
||||
texmfSrc = fetchurl {
|
||||
url = mirror://debian/pool/main/t/texlive-base/texlive-base_2013.20130918.orig.tar.xz;
|
||||
sha256 = "0h7x49zsd2gs8fr28f4h04dv5m8p2mpgqxk2vvl5xlf4wwxxbm2p";
|
||||
url = "mirror://debian/pool/main/t/texlive-base/texlive-base_${texmfVersion}.orig.tar.xz";
|
||||
sha256 = "08vhl6x742r8fl0gags2r6yspz8ynvz26vdjrqb4vyz5h7h3rzc9";
|
||||
};
|
||||
|
||||
langTexmfVersion = "2014.20140717";
|
||||
langTexmfSrc = fetchurl {
|
||||
url = mirror://debian/pool/main/t/texlive-lang/texlive-lang_2013.20131010.orig.tar.xz;
|
||||
sha256 = "17wfd2qmyafv74ac3ssy9aga12g09l2q0r1p19fb4vvs0wrkwzbz";
|
||||
url = "mirror://debian/pool/main/t/texlive-lang/texlive-lang_${langTexmfVersion}.orig.tar.xz";
|
||||
sha256 = "1x9aa3v2cg4lcb58lwksnfdsgrhi0sg968pjqsbndmbxhr1msbp7";
|
||||
};
|
||||
|
||||
passthru = { inherit texmfSrc langTexmfSrc; };
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
doMainBuild = fullDepEntry ( stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
export DYLD_LIBRARY_PATH="${poppler}/lib"
|
||||
'' + ''
|
||||
mkdir -p $out
|
||||
@@ -29,6 +34,9 @@ rec {
|
||||
|
||||
sed -e s@/usr/bin/@@g -i $(grep /usr/bin/ -rl . )
|
||||
|
||||
sed -e 's@dehypht-x-2013-05-26@dehypht-x-2014-05-21@' -i $(grep 'dehypht-x' -rl $out )
|
||||
sed -e 's@dehyphn-x-2013-05-26@dehyphn-x-2014-05-21@' -i $(grep 'dehyphn-x' -rl $out )
|
||||
|
||||
sed -e 's@\<env ruby@${ruby}/bin/ruby@' -i $(grep 'env ruby' -rl . )
|
||||
sed -e 's@\<env perl@${perl}/bin/perl@' -i $(grep 'env perl' -rl . )
|
||||
sed -e 's@\<env python@${python}/bin/python@' -i $(grep 'env python' -rl . )
|
||||
@@ -36,12 +44,12 @@ rec {
|
||||
sed -e '/ubidi_open/i#include <unicode/urename.h>' -i $(find . -name configure)
|
||||
sed -e 's/-lttf/-lfreetype/' -i $(find . -name configure)
|
||||
|
||||
sed -e s@ncurses/curses.h@curses.h@g -i $(grep ncurses/curses.h -rl . )
|
||||
# sed -e s@ncurses/curses.h@curses.h@g -i $(grep ncurses/curses.h -rl . )
|
||||
sed -e '1i\#include <string.h>\n\#include <stdlib.h>' -i $( find libs/teckit -name '*.cpp' -o -name '*.c' )
|
||||
|
||||
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${icu}/include/layout";
|
||||
|
||||
./Build --prefix="$out" --datadir="$out/share" --mandir "$out/share/man" --infodir "$out/share/info" \
|
||||
./Build --prefix="$out" --datadir="$out/share" --mandir="$out/share/man" --infodir="$out/share/info" \
|
||||
${args.lib.concatStringsSep " " configureFlags}
|
||||
cd Work
|
||||
'' ) [ "minInit" "doUnpack" "addInputs" "defEnsureDir" ];
|
||||
@@ -100,30 +108,38 @@ rec {
|
||||
patchShebangsInterimShareTexmfDist = doPatchShebangs ''$out/share/texmf-dist/scripts/'';
|
||||
patchShebangsInterimTexmfDist = doPatchShebangs ''$out/texmf-dist/scripts/'';
|
||||
|
||||
patchShebangsInterim = fullDepEntry ("") ["patchShebangsInterimBin"
|
||||
"patchShebangsInterimLibexec" "patchShebangsInterimTexmfDist"
|
||||
patchShebangsInterim = fullDepEntry ("") ["patchShebangsInterimBin"
|
||||
"patchShebangsInterimLibexec" "patchShebangsInterimTexmfDist"
|
||||
"patchShebangsInterimShareTexmfDist"];
|
||||
|
||||
buildInputs = [ zlib bzip2 ncurses libpng flex bison libX11.out libICE xproto
|
||||
freetype t1lib gd libXaw icu ghostscript ed libXt libXpm libXmu libXext
|
||||
xextproto perl libSM ruby expat curl libjpeg python fontconfig xz pkgconfig
|
||||
poppler graphite2 lesstif zziplib harfbuzz texinfo ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ makeWrapper ];
|
||||
poppler libpaper graphite2 lesstif zziplib harfbuzz texinfo potrace ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ makeWrapper ]
|
||||
;
|
||||
|
||||
configureFlags = [ "--with-x11" "--enable-ipc" "--with-mktexfmt"
|
||||
"--enable-shared" "--disable-native-texlive-build" "--with-system-zziplib"
|
||||
"--with-system-libgs" "--with-system-t1lib" "--with-system-freetype2"
|
||||
"--with-system-freetype=no" "--disable-ttf2pk" "--enable-ttf2pk2"
|
||||
]
|
||||
++ ( if stdenv.isDarwin
|
||||
# ironically, couldn't get xetex compiling on darwin
|
||||
then [ "--disable-xetex" "--disable-xdv2pdf" "--disable-xdvipdfmx" ]
|
||||
# couldn't seem to get system icu working on darwin
|
||||
else [ "--with-system-icu" ] );
|
||||
"--with-system-libgs" "--with-system-t1lib" "--with-system-freetype2"
|
||||
"--with-system-freetype=no" "--disable-ttf2pk" "--enable-ttf2pk2" ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [
|
||||
# TODO: We should be able to fix these tests
|
||||
"--disable-devnag"
|
||||
|
||||
# jww (2014-06-02): The following fails with:
|
||||
# FAIL: tests/dvisvgm
|
||||
# ===================
|
||||
#
|
||||
# dyld: Library not loaded: libgs.dylib.9.06
|
||||
# Referenced from: .../Work/texk/dvisvgm/.libs/dvisvgm
|
||||
# Reason: image not found
|
||||
"--disable-dvisvgm"
|
||||
];
|
||||
|
||||
phaseNames = [ "addInputs" "doMainBuild" "doMakeInstall" "doPostInstall" ];
|
||||
|
||||
name = "texlive-core-2013";
|
||||
name = "texlive-core-2014";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A TeX distribution";
|
||||
@@ -133,4 +149,3 @@ rec {
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
args: with args;
|
||||
rec {
|
||||
name = "texlive-extra-2013";
|
||||
name = "texlive-extra-2014";
|
||||
version = "2014.20140717";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://debian/pool/main/t/texlive-extra/texlive-extra_2013.20131010.orig.tar.xz;
|
||||
sha256 = "1wciyjwp0swny22amwcnr6vvdwjy423856q7c3l1sd5b31xfbc18";
|
||||
url = "mirror://debian/pool/main/t/texlive-extra/texlive-extra_${version}.orig.tar.xz";
|
||||
sha256 = "1khxqdq9gagm6z8kbpjbraysfzibfjs2cgbrhjpncbd24sxpw13q";
|
||||
};
|
||||
|
||||
buildInputs = [texLive xz];
|
||||
@@ -18,7 +20,7 @@ rec {
|
||||
description = "Extra components for TeXLive";
|
||||
maintainers = [ args.lib.maintainers.raskin ];
|
||||
|
||||
# Actually, arch-independent..
|
||||
platforms = [] ;
|
||||
# Actually, arch-independent..
|
||||
hydraPlatforms = [];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,6 +21,6 @@ rec {
|
||||
maintainers = [ args.lib.maintainers.simons ];
|
||||
|
||||
# Actually, arch-independent..
|
||||
platforms = [] ;
|
||||
hydraPlatforms = [];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@ rec {
|
||||
maintainers = [ args.lib.maintainers.simons ];
|
||||
|
||||
# Actually, arch-independent..
|
||||
platforms = [] ;
|
||||
hydraPlatforms = [];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
, bash, getopt, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xmlto-0.0.23";
|
||||
name = "xmlto-0.0.25";
|
||||
src = fetchurl {
|
||||
url = "http://fedorahosted.org/releases/x/m/xmlto/${name}.tar.bz2";
|
||||
sha256 = "1i5iihx304vj52nik42drs7z6z58m9szahng113r4mgd1mvb5zx9";
|
||||
sha256 = "0dp5nxq491gymq806za0dk4hngfmq65ysrqbn0ypajqbbl6vf71n";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
@@ -41,10 +41,7 @@ stdenv.mkDerivation rec {
|
||||
necessary post-processing.
|
||||
'';
|
||||
|
||||
license = "GPLv2+";
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
homepage = https://fedorahosted.org/xmlto/;
|
||||
|
||||
maintainers = [ ];
|
||||
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user