mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 10:22:54 +08:00
fetchMavenArtifact: fix metadata support
Fix fetchMavenArtifact to forward the "meta" attribute to mkDerivation
rather than fetchurl.
(cherry picked from commit f81a2dfa52)
This commit is contained in:
committed by
github-actions[bot]
parent
97fd412bc4
commit
de8ff28a5a
@@ -31,6 +31,8 @@ args@{
|
||||
# and `urls` can be specified, not both.
|
||||
url ? "",
|
||||
urls ? [ ],
|
||||
# Metadata
|
||||
meta ? { },
|
||||
# The rest of the arguments are just forwarded to `fetchurl`.
|
||||
...
|
||||
}:
|
||||
@@ -71,6 +73,7 @@ let
|
||||
"classifier"
|
||||
"repos"
|
||||
"url"
|
||||
"meta"
|
||||
]
|
||||
// {
|
||||
urls = urls_;
|
||||
@@ -79,7 +82,7 @@ let
|
||||
);
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user