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