summary refs log tree commit diff
path: root/pkgs/build-support/fetchmavenartifact
diff options
context:
space:
mode:
authorVolth <volth@webmaster.ms>2017-06-25 12:25:01 +0000
committerVolth <volth@webmaster.ms>2017-06-25 12:25:16 +0000
commit546346849e489054bc9107c55037ebf7f514de89 (patch)
treee78811aaca10a1ffe18b49d5437a179e0f5d5896 /pkgs/build-support/fetchmavenartifact
parented515c80803e975e454e654d2de9e692aa1f3af1 (diff)
downloadnixpkgs-546346849e489054bc9107c55037ebf7f514de89.tar
nixpkgs-546346849e489054bc9107c55037ebf7f514de89.tar.gz
nixpkgs-546346849e489054bc9107c55037ebf7f514de89.tar.bz2
nixpkgs-546346849e489054bc9107c55037ebf7f514de89.tar.lz
nixpkgs-546346849e489054bc9107c55037ebf7f514de89.tar.xz
nixpkgs-546346849e489054bc9107c55037ebf7f514de89.tar.zst
nixpkgs-546346849e489054bc9107c55037ebf7f514de89.zip
fetchMavenArtifact: prevent leaking nix hash to jar name
Diffstat (limited to 'pkgs/build-support/fetchmavenartifact')
-rw-r--r--pkgs/build-support/fetchmavenartifact/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchmavenartifact/default.nix b/pkgs/build-support/fetchmavenartifact/default.nix
index a9c53249ae8..dc48a312fb3 100644
--- a/pkgs/build-support/fetchmavenartifact/default.nix
+++ b/pkgs/build-support/fetchmavenartifact/default.nix
@@ -67,7 +67,7 @@ in
     # packages packages that mention this derivation in their buildInputs.
     installPhase = ''
       mkdir -p $out/share/java
-      ln -s ${jar} $out/share/java
+      ln -s ${jar} $out/share/java/${artifactId}-${version}.jar
     '';
     # We also add a `jar` attribute that can be used to easily obtain the path
     # to the downloaded jar file.