docbook-xsl: Expose dbtoepub in passthru.
This commit is contained in:
parent
1bae36bc41
commit
e0779e6aed
|
@ -1,8 +1,8 @@
|
||||||
{ lib, stdenv, fetchurl, findXMLCatalogs }:
|
{ lib, stdenv, fetchurl, findXMLCatalogs, writeScriptBin, ruby, bash }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
common = { pname, sha256 }: stdenv.mkDerivation rec {
|
common = { pname, sha256 }: let self = stdenv.mkDerivation rec {
|
||||||
name = "${pname}-1.79.1";
|
name = "${pname}-1.79.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -25,13 +25,19 @@ let
|
||||||
ln -s $dst $out/xml/xsl/docbook
|
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 = {
|
meta = {
|
||||||
homepage = http://wiki.docbook.org/topic/DocBookXslStylesheets;
|
homepage = http://wiki.docbook.org/topic/DocBookXslStylesheets;
|
||||||
description = "XSL stylesheets for transforming DocBook documents into HTML and various other formats";
|
description = "XSL stylesheets for transforming DocBook documents into HTML and various other formats";
|
||||||
maintainers = [ lib.maintainers.eelco ];
|
maintainers = [ lib.maintainers.eelco ];
|
||||||
platforms = lib.platforms.all;
|
platforms = lib.platforms.all;
|
||||||
};
|
};
|
||||||
};
|
}; in self;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue