summary refs log tree commit diff
path: root/pkgs/tools/typesetting/sshlatex
diff options
context:
space:
mode:
authorIngo Blechschmidt <iblech@speicherleck.de>2017-10-28 00:16:39 +0200
committerIngo Blechschmidt <iblech@speicherleck.de>2017-10-28 11:08:05 +0200
commit9f28f2dd38bbc6b156a4f1798a47b32588611535 (patch)
tree8c9369059422b382f7d1e222f312c6dab2f536b5 /pkgs/tools/typesetting/sshlatex
parent7ce848309e6d64820af1e96045c5386992e90a4a (diff)
downloadnixpkgs-9f28f2dd38bbc6b156a4f1798a47b32588611535.tar
nixpkgs-9f28f2dd38bbc6b156a4f1798a47b32588611535.tar.gz
nixpkgs-9f28f2dd38bbc6b156a4f1798a47b32588611535.tar.bz2
nixpkgs-9f28f2dd38bbc6b156a4f1798a47b32588611535.tar.lz
nixpkgs-9f28f2dd38bbc6b156a4f1798a47b32588611535.tar.xz
nixpkgs-9f28f2dd38bbc6b156a4f1798a47b32588611535.tar.zst
nixpkgs-9f28f2dd38bbc6b156a4f1798a47b32588611535.zip
sshlatex: init at 0.7
Diffstat (limited to 'pkgs/tools/typesetting/sshlatex')
-rw-r--r--pkgs/tools/typesetting/sshlatex/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/sshlatex/default.nix b/pkgs/tools/typesetting/sshlatex/default.nix
new file mode 100644
index 00000000000..bfc1a8eb162
--- /dev/null
+++ b/pkgs/tools/typesetting/sshlatex/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchFromGitHub, inotify-tools, openssh, perl, gnutar, bash, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  name = "sshlatex-${version}";
+  version = "0.7";
+
+  src = fetchFromGitHub {
+    owner = "iblech";
+    repo = "sshlatex";
+    rev = "${version}";
+    sha256 = "02h81i8n3skg9jnlfrisyg5bhqicrn6svq64kp20f70p64s3d7ix";
+  };
+
+  buildInputs = [ makeWrapper ];
+
+  installPhase = let
+    binPath = stdenv.lib.makeBinPath [ openssh perl gnutar bash inotify-tools ];
+  in ''
+    mkdir -p $out/bin
+    cp sshlatex $out/bin
+    wrapProgram $out/bin/sshlatex --prefix PATH : "${binPath}"
+  '';
+
+  meta = with stdenv.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
+      LaTeX there, and streams the resulting PDF file to the local host.
+      Because sshlatex prestarts LaTeX with the previous run's preamble,
+      thereby preloading the required LaTeX packages, it is also useful in a
+      purely local setting.
+    '';
+    homepage = https://github.com/iblech/sshlatex;
+    license = stdenv.lib.licenses.gpl3Plus;  # actually dual-licensed gpl3Plus | lppl13cplus
+    platforms = stdenv.lib.platforms.all;
+    maintainers = [ maintainers.iblech ];
+  };
+}