defaultGemConfig: remove asciidoctor-diagram JARs

(Except on JRuby, where these are presumably important.)
This commit is contained in:
Alyssa Ross 2020-01-06 23:06:59 +00:00
parent fbe4716bd5
commit 1ac11cc1c1
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -39,6 +39,15 @@ let
in
{
asciidoctor-diagram = { version, ruby, ... }: {
postInstall = ''
# Delete vendored JAR files unless using JRuby.
if ruby -e 'exit(RUBY_PLATFORM != "java")'; then
rm -v $out/${ruby.gemPath}/gems/$gemName-${version}/lib/*.jar
fi
'';
};
atk = attrs: {
dependencies = attrs.dependencies ++ [ "gobject-introspection" ];
nativeBuildInputs = [ rake bundler pkgconfig ];