1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/pure-modules/pandoc/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

30 lines
942 B
Nix

{ stdenv, fetchurl, pkgconfig, pure, pandoc, gawk, getopt }:
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";
};
nativeBuildInputs = [ pkgconfig ];
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 = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ asppsa ];
};
}