Skip to content

Commit de8ff28

Browse files
voggithub-actions[bot]
authored andcommitted
fetchMavenArtifact: fix metadata support
Fix fetchMavenArtifact to forward the "meta" attribute to mkDerivation rather than fetchurl. (cherry picked from commit f81a2df)
1 parent 97fd412 commit de8ff28

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)