asciidoctor: fix update.sh
This commit is contained in:
parent
d6b7b2a8cf
commit
f726160556
@ -5,7 +5,8 @@
|
|||||||
mkShell, bundix
|
mkShell, bundix
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let app = bundlerApp {
|
let
|
||||||
|
app = bundlerApp {
|
||||||
pname = "asciidoctor";
|
pname = "asciidoctor";
|
||||||
gemdir = ./.;
|
gemdir = ./.;
|
||||||
|
|
||||||
@ -24,6 +25,10 @@ let app = bundlerApp {
|
|||||||
${lib.optionalString (kindlegen != null) "--set KINDLEGEN ${kindlegen}/bin/kindlegen"}
|
${lib.optionalString (kindlegen != null) "--set KINDLEGEN ${kindlegen}/bin/kindlegen"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
inherit updateShell;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A faster Asciidoc processor written in Ruby";
|
description = "A faster Asciidoc processor written in Ruby";
|
||||||
homepage = https://asciidoctor.org/;
|
homepage = https://asciidoctor.org/;
|
||||||
@ -33,9 +38,9 @@ let app = bundlerApp {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Can't be defined directly in the passthru, since app.gems isn't defined at that point.
|
updateShell = mkShell {
|
||||||
shell = mkShell {
|
inputsFrom = lib.attrValues app.gems;
|
||||||
inputsFrom = lib.mapAttrs app.gems;
|
|
||||||
buildInputs = [ bundix ];
|
buildInputs = [ bundix ];
|
||||||
};
|
};
|
||||||
in app.overrideAttrs (attrs: { passthru = attrs.passthru // { updateShell = shell; }; })
|
in
|
||||||
|
app
|
||||||
|
Loading…
Reference in New Issue
Block a user