Skip to content

Commit cd69e22

Browse files
[Backport release-25.05] fetchMavenArtifact: fix metadata support (#435296)
2 parents d74d174 + de8ff28 commit cd69e22

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/build-support/fetchmavenartifact/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ args@{
3131
# and `urls` can be specified, not both.
3232
url ? "",
3333
urls ? [ ],
34+
# Metadata
35+
meta ? { },
3436
# The rest of the arguments are just forwarded to `fetchurl`.
3537
...
3638
}:
@@ -71,6 +73,7 @@ let
7173
"classifier"
7274
"repos"
7375
"url"
76+
"meta"
7477
]
7578
// {
7679
urls = urls_;
@@ -79,7 +82,7 @@ let
7982
);
8083
in
8184
stdenv.mkDerivation {
82-
inherit pname version;
85+
inherit pname version meta;
8386
dontUnpack = true;
8487
# By moving the jar to $out/share/java we make it discoverable by java
8588
# packages packages that mention this derivation in their buildInputs.

0 commit comments

Comments
 (0)