2015-08-27 17:01:45 +02:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2003-11-25 17:59:07 +01:00
|
|
|
|
2015-08-27 17:01:45 +02:00
|
|
|
let
|
2015-08-27 16:56:43 +02:00
|
|
|
|
2015-08-27 17:01:45 +02:00
|
|
|
common = { pname, sha256 }: stdenv.mkDerivation rec {
|
2016-03-28 00:07:53 +02:00
|
|
|
name = "${pname}-1.78.1";
|
2015-08-27 17:01:45 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/docbook/${name}.tar.bz2";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = "true";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
dst=$out/share/xml/${pname}
|
|
|
|
mkdir -p $dst
|
|
|
|
rm -rf RELEASE* README* INSTALL TODO NEWS* BUGS install.sh svn* tools log Makefile tests extensions webhelp
|
|
|
|
mv * $dst/
|
|
|
|
|
|
|
|
# Backwards compatibility. Will remove eventually.
|
|
|
|
mkdir -p $out/xml/xsl
|
|
|
|
ln -s $dst $out/xml/xsl/docbook
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://wiki.docbook.org/topic/DocBookXslStylesheets;
|
|
|
|
description = "XSL stylesheets for transforming DocBook documents into HTML and various other formats";
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
2003-11-25 17:59:07 +01:00
|
|
|
};
|
2015-08-27 16:56:43 +02:00
|
|
|
|
2015-08-27 17:01:45 +02:00
|
|
|
in {
|
2015-08-27 16:56:43 +02:00
|
|
|
|
2015-08-27 17:01:45 +02:00
|
|
|
docbook_xsl = common {
|
|
|
|
pname = "docbook-xsl";
|
2016-03-28 00:07:53 +02:00
|
|
|
sha256 = "0rxl013ncmz1n6ymk2idvx3hix9pdabk8xn01cpcv32wmfb753y9";
|
2015-08-27 17:01:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
docbook_xsl_ns = common {
|
|
|
|
pname = "docbook-xsl-ns";
|
2016-03-28 00:07:53 +02:00
|
|
|
sha256 = "1x3sc0axk9z3i6n0jhlsmzlmb723a4sjgslm9g12by6phirdx3ng";
|
2015-08-27 17:01:45 +02:00
|
|
|
};
|
2015-08-27 16:56:43 +02:00
|
|
|
|
2003-11-25 17:59:07 +01:00
|
|
|
}
|