2021-01-23 17:15:07 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, pure, pandoc, gawk, getopt }:
|
2015-05-26 06:58:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "pandoc";
|
|
|
|
version = "0.1";
|
|
|
|
name = "pure-${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
|
|
|
|
sha256 = "0f23a17549048ca3a8f4936ea9e931feb05997390b486850936b746996350cda";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ pure ];
|
2015-05-26 06:58:18 +00:00
|
|
|
propagatedBuildInputs = [ pandoc gawk getopt ];
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
|
2015-05-26 06:58:18 +00:00
|
|
|
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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://puredocs.bitbucket.org/pure-pandoc.html";
|
2021-01-23 17:15:07 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ asppsa ];
|
2015-05-26 06:58:18 +00:00
|
|
|
};
|
|
|
|
}
|