buildMavenPackage: inherit maven

+13 -2
+13 -2
pkgs/development/tools/build-managers/apache-maven/build-package.nix
··· 16 # originally extracted from dbeaver 17 # created to allow using maven packages in the same style as rust 18 19 - stdenv.mkDerivation (rec { 20 fetchedMavenDeps = stdenv.mkDerivation ({ 21 name = "${pname}-${version}-maven-deps"; 22 inherit src patches; ··· 44 outputHashMode = "recursive"; 45 outputHash = mvnHash; 46 } // mvnFetchExtraArgs); 47 48 buildPhase = '' 49 runHook preBuild ··· 53 54 runHook postBuild 55 ''; 56 - } // builtins.removeAttrs args [ "mvnFetchExtraArgs" ])
··· 16 # originally extracted from dbeaver 17 # created to allow using maven packages in the same style as rust 18 19 + let 20 fetchedMavenDeps = stdenv.mkDerivation ({ 21 name = "${pname}-${version}-maven-deps"; 22 inherit src patches; ··· 44 outputHashMode = "recursive"; 45 outputHash = mvnHash; 46 } // mvnFetchExtraArgs); 47 + in 48 + stdenv.mkDerivation (builtins.removeAttrs args [ "mvnFetchExtraArgs" ] // { 49 + inherit fetchedMavenDeps; 50 + 51 + nativeBuildInputs = args.nativeBuildInputs or [ ] ++ [ 52 + maven 53 + ]; 54 55 buildPhase = '' 56 runHook preBuild ··· 60 61 runHook postBuild 62 ''; 63 + 64 + meta = args.meta or { } // { 65 + platforms = args.meta.platforms or maven.meta.platforms; 66 + }; 67 + })