nixpkgs/pkgs/tools/typesetting/xmlroff/default.nix

56 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
2019-09-05 21:04:20 +00:00
, autoreconfHook
, gtk2
, libxml2
, libxslt
, pango
, pangoxsl
, perl
, pkg-config
2019-09-05 21:04:20 +00:00
, popt
}:
2014-11-24 07:43:34 +00:00
stdenv.mkDerivation rec {
pname = "xmlroff";
2019-09-05 21:04:20 +00:00
version = "0.6.3";
2019-09-05 21:04:20 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "0dgp72094lx9i9gvg21pp8ak7bg39707rdf6wz011p9s6n6lrq5g";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [
libxml2
libxslt
pango
pangoxsl
gtk2
popt
];
2019-09-05 21:04:20 +00:00
sourceRoot = "source/xmlroff/";
enableParallelBuilding = true;
2014-11-24 07:43:34 +00:00
configureScript = "./autogen.sh";
2018-07-25 21:44:21 +00:00
configureFlags = [
"--disable-gp"
];
2014-11-24 07:43:34 +00:00
preBuild = ''
substituteInPlace tools/insert-file-as-string.pl --replace "/usr/bin/perl" "${perl}/bin/perl"
2019-09-05 21:04:20 +00:00
substituteInPlace Makefile --replace "docs" "" # docs target wants to download from network
2014-11-24 07:43:34 +00:00
'';
meta = with lib; {
2019-09-05 21:04:20 +00:00
description = "XSL Formatter";
homepage = "http://xmlroff.org/";
platforms = platforms.unix;
license = licenses.bsd3;
};
}