about summary refs log tree commit diff
path: root/pkgs/tools/typesetting/lhs2tex/default.nix
blob: ec1c9021522f597ca7fac023606bdd063d49dcba (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
{ cabal, filepath, mtl, regexCompat, texLive }:

cabal.mkDerivation (self: {
  pname = "lhs2tex";
  version = "1.18.1";
  sha256 = "0j4n7vkabsggn94gbwixy1vmckdck2nggdiqvk6n9nx164if5jnw";
  isLibrary = false;
  isExecutable = true;
  buildDepends = [ filepath mtl regexCompat ];
  extraLibraries = [ texLive ];
  postInstall = ''
    mkdir -p "$out/share/doc/$name"
    cp doc/Guide2.pdf $out/share/doc/$name
    mkdir -p "$out/nix-support"
  '';
  meta = {
    homepage = "http://www.andres-loeh.de/lhs2tex/";
    description = "Preprocessor for typesetting Haskell sources with LaTeX";
    license = "GPL";
    platforms = self.ghc.meta.platforms;
    maintainers = [ self.stdenv.lib.maintainers.andres ];
  };
})