2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, inotify-tools, openssh, perl, gnutar, bash, makeWrapper }:
|
2017-10-27 22:16:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sshlatex";
|
2017-12-09 14:14:15 +00:00
|
|
|
version = "0.8";
|
2017-10-27 22:16:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iblech";
|
|
|
|
repo = "sshlatex";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2017-12-09 14:14:15 +00:00
|
|
|
sha256 = "0kaah8is74zba9373xccmsxmnnn6kh0isr4qpg21x3qhdzhlxl7q";
|
2017-10-27 22:16:39 +00:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-10-27 22:16:39 +00:00
|
|
|
|
|
|
|
installPhase = let
|
2021-01-15 09:19:50 +00:00
|
|
|
binPath = lib.makeBinPath [ openssh perl gnutar bash inotify-tools ];
|
2017-10-27 22:16:39 +00:00
|
|
|
in ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp sshlatex $out/bin
|
|
|
|
wrapProgram $out/bin/sshlatex --prefix PATH : "${binPath}"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-27 22:16:39 +00:00
|
|
|
description = "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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/iblech/sshlatex";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3Plus; # actually dual-licensed gpl3Plus | lppl13cplus
|
|
|
|
platforms = lib.platforms.all;
|
2017-10-27 22:16:39 +00:00
|
|
|
maintainers = [ maintainers.iblech ];
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "sshlatex";
|
2017-10-27 22:16:39 +00:00
|
|
|
};
|
|
|
|
}
|