@@ -1,8 +1,8 @@
1−{ lib, stdenv, fetchurl, findXMLCatalogs }:
1+{ lib, stdenv, fetchurl, findXMLCatalogs, writeScriptBin, ruby, bash }:
22
33let
44
5− common = { pname, sha256 }: stdenv.mkDerivation rec {
5+ common = { pname, sha256 }: let self = stdenv.mkDerivation rec {
66 name = "${pname}-1.79.1";
77
88 src = fetchurl {
@@ -25,13 +25,19 @@ let
2525 ln -s $dst $out/xml/xsl/docbook
2626 '';
2727
28+ passthru.dbtoepub = writeScriptBin "dbtoepub"
29+ ''
30+ #!${bash}/bin/bash
31+ exec -a dbtoepub ${ruby}/bin/ruby ${self}/share/xml/${pname}/epub/bin/dbtoepub "$@"
32+ '';
33+
2834 meta = {
2935 homepage = http://wiki.docbook.org/topic/DocBookXslStylesheets;
3036 description = "XSL stylesheets for transforming DocBook documents into HTML and various other formats";
3137 maintainers = [ lib.maintainers.eelco ];
3238 platforms = lib.platforms.all;
3339 };
34− };
40+ }; in self;
3541
3642in {
3743