# This file was auto-generated by cabal2nix. Please do NOT edit manually!

{ 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 = self.stdenv.lib.licenses.gpl2;
    platforms = self.ghc.meta.platforms;
    hydraPlatforms = self.stdenv.lib.platforms.linux;
    maintainers = [ self.stdenv.lib.maintainers.andres ];
  };
})
