about summary refs log tree commit diff
path: root/pkgs/tools/typesetting/lhs2tex/default.nix
blob: 68f2347bb65661d4062873599152723c556f4f48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{cabal, texLive, regexCompat}:

cabal.mkDerivation (self : {
  pname = "lhs2tex";
  version = "1.17";
  name = self.fname;
  sha256 = "1x49316m5xm4f6hw5q7kia9rpfpygxhk5gnifd54ai0zjmdlkxrc";
  extraBuildInputs = [regexCompat texLive];

  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];
  };
})