diff --git a/pkgs/development/java-modules/m2install.nix b/pkgs/development/java-modules/m2install.nix index f223e205220d..b35880e013c8 100644 --- a/pkgs/development/java-modules/m2install.nix +++ b/pkgs/development/java-modules/m2install.nix @@ -1,5 +1,12 @@ -{ stdenv, fetchurl }: -{ version, artifactId, groupId, sha512, type ? "jar", suffix ? "" }: +{ lib, stdenv, fetchurl }: +{ version +, artifactId +, groupId +, sha512 +, type ? "jar" +, suffix ? "" +, sourceProvenance ? (if type == "jar" then [ lib.sourceTypes.binaryBytecode ] else []) +}: let m2Path = "${builtins.replaceStrings ["."] ["/"] groupId}/${artifactId}/${version}"; @@ -18,4 +25,6 @@ in stdenv.mkDerivation { mkdir -p $out/m2/$m2Path cp $src $out/m2/$m2Path/$m2File ''; + + meta.sourceProvenance = sourceProvenance; }