about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/typesetting/tex/pplatex/default.nix
blob: 01777f3dd4285145145cac0bd1fbc0bf5ad6923e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchFromGitHub, cmake, pkgconfig, pcre }:

stdenv.mkDerivation {
  pname = "pplatex";
  version = "unstable-2015-09-14";

  src = fetchFromGitHub {
    owner = "stefanhepp";
    repo = "pplatex";
    rev = "5cec891ad6aec0115081cdd114ae1cc4f1ed7c06";
    sha256 = "0wrkkbz6b6x91650nm8gccz7xghlp7b1i31fxwalz9xw3py9xygb";
  };

  nativeBuildInputs = [ cmake pkgconfig ];

  buildInputs = [ pcre ];

  installPhase = ''
    runHook preInstall
    install -Dm555 src/pplatex "$out"/bin/pplatex
    runHook postInstall
  '';

  meta = with stdenv.lib; {
    description =
      "A tool to reformat the output of latex and friends into readable messages";
    homepage = "https://github.com/stefanhepp/pplatex";
    license = licenses.gpl3Plus;
    maintainers = [ maintainers.srgom ];
    platforms = platforms.unix;
  };
}