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
|
||||
|
||||
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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user