summary refs log tree commit diff
path: root/pkgs/tools/typesetting/lhs2tex/default.nix
blob: 012c98f68871baed1475f9195dc1ba6db19365aa (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
{cabal, tetex, polytable, regexCompat}:

#assert tetex == polytable.tetex;

cabal.mkDerivation (self : {
  pname = "lhs2tex";
  version = "1.16";
  name = self.fname;
  sha256 = "aa43ec92e8d7c94213365a7211d605314476977155e36420caa3cfb394f7c76f";
  extraBuildInputs = [tetex regexCompat];
  propagatedBuildInputs = [polytable]; # automatically in user-env now with cabal

  postInstall = ''
    ensureDir "$out/share/doc/$name"
    cp doc/Guide2.pdf $out/share/doc/$name
    ensureDir "$out/nix-support"
  '';

  meta = {
    description = "Preprocessor for typesetting Haskell sources with LaTeX";
    license = "GPLv2";
    maintainers = [self.stdenv.lib.maintainers.andres];
  };
})