nixpkgs/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
let
2015-08-27 15:56:43 +01:00
common = { pname, sha256 }: stdenv.mkDerivation rec {
2016-03-27 12:29:09 +01:00
name = "${pname}-1.79.1";
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;
};
};
2015-08-27 15:56:43 +01:00
in {
2015-08-27 15:56:43 +01:00
docbook_xsl = common {
pname = "docbook-xsl";
2016-03-27 12:29:09 +01:00
sha256 = "0s59lihif2fr7rznckxr2kfyrvkirv76r1zvidp9b5mj28p4apvj";
};
docbook_xsl_ns = common {
pname = "docbook-xsl-ns";
2016-03-27 12:29:09 +01:00
sha256 = "170ggf5dgjar65kkn5n33kvjr3pdinpj66nnxfx8b2avw0k91jin";
};
2015-08-27 15:56:43 +01:00
}