1 { lib, stdenv, fetchurl }:
8 , sourceProvenance ? (if type == "jar" then [ lib.sourceTypes.binaryBytecode ] else [])
12 m2Path = "${builtins.replaceStrings ["."] ["/"] groupId}/${artifactId}/${version}";
13 m2File = "${artifactId}-${version}${suffix}.${type}";
16 url = "mirror://maven/${m2Path}/${m2File}";
18 in stdenv.mkDerivation {
19 inherit version m2Path m2File src;
25 mkdir -p $out/m2/$m2Path
26 cp $src $out/m2/$m2Path/$m2File
29 meta.sourceProvenance = sourceProvenance;