tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
buildMavenPackage: inherit maven
Weijia Wang
2 years ago
e0f32f89
0374fa23
+13
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
build-managers
apache-maven
build-package.nix
+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);
0
0
0
0
0
0
0
47
48
buildPhase = ''
49
runHook preBuild
···
53
54
runHook postBuild
55
'';
56
-
} // builtins.removeAttrs args [ "mvnFetchExtraArgs" ])
0
0
0
0
···
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
+
})