fetchMavenArtifact: fix metadata support

Fix fetchMavenArtifact to forward the "meta" attribute to mkDerivation
rather than fetchurl.

Changed files
+4 -1
pkgs
build-support
fetchmavenartifact
+4 -1
pkgs/build-support/fetchmavenartifact/default.nix
···
# and `urls` can be specified, not both.
url ? "",
urls ? [ ],
+
# Metadata
+
meta ? { },
# The rest of the arguments are just forwarded to `fetchurl`.
...
}:
···
"classifier"
"repos"
"url"
+
"meta"
]
// {
urls = urls_;
···
);
in
stdenv.mkDerivation {
-
inherit pname version;
+
inherit pname version meta;
dontUnpack = true;
# By moving the jar to $out/share/java we make it discoverable by java
# packages packages that mention this derivation in their buildInputs.