git.iko.soy/typeable/nixpkgs
on master help sign in
docbook-xsl: Expose dbtoepub in passthru.
commite0779e6aed6f1d1ebd6e99ff2679ad1f247309b4 authorShea Levy <shea@shealevy.com> dateWed 22 Nov 2017, 09:12 (9 years ago) parent1bae36b
1 file changed+9−3
pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix+9−3
pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix+9−3
@@ -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