docbook-xsl: Expose dbtoepub in passthru.

This commit is contained in:
Shea Levy 2017-11-22 09:12:00 -05:00
parent 1bae36bc41
commit e0779e6aed
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27

View file

@ -1,8 +1,8 @@
{ lib, stdenv, fetchurl, findXMLCatalogs }:
{ lib, stdenv, fetchurl, findXMLCatalogs, writeScriptBin, ruby, bash }:
let
common = { pname, sha256 }: stdenv.mkDerivation rec {
common = { pname, sha256 }: let self = stdenv.mkDerivation rec {
name = "${pname}-1.79.1";
src = fetchurl {
@ -25,13 +25,19 @@ let
ln -s $dst $out/xml/xsl/docbook
'';
passthru.dbtoepub = writeScriptBin "dbtoepub"
''
#!${bash}/bin/bash
exec -a dbtoepub ${ruby}/bin/ruby ${self}/share/xml/${pname}/epub/bin/dbtoepub "$@"
'';
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;
};
};
}; in self;
in {