summary refs log tree commit diff
path: root/pkgs/development/pure-modules/pandoc/default.nix
blob: bf9bd988ddbcd48c0470a32ddb506600f13ec6cd (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
{ lib, stdenv, fetchurl, pkg-config, pure, pandoc, gawk, getopt }:

stdenv.mkDerivation rec {
  pname = "pure-pandoc";
  version = "0.1";

  src = fetchurl {
    url = "https://bitbucket.org/purelang/pure-lang/downloads/pure-pandoc-${version}.tar.gz";
    sha256 = "0f23a17549048ca3a8f4936ea9e931feb05997390b486850936b746996350cda";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ pure ];
  propagatedBuildInputs = [ pandoc gawk getopt ];
  makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
  preInstall = ''
    mkdir -p $out/bin
    mkdir -p $out/share/man/man1
  '';

  meta = {
    description = "Converts Sphinx-formatted Pure documentation files to Markdown and other formats using Pandoc";
    homepage = "http://puredocs.bitbucket.org/pure-pandoc.html";
    license = lib.licenses.gpl3Plus;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ asppsa ];
  };
}