@@ -0,0 +1,29 @@
1+{ stdenv, fetchurl, makeWrapper, jre }:
2+stdenv.mkDerivation rec {
3+ name = "nexus-${version}";
4+ version = "2.12.0-01";
5+
6+ src = fetchurl {
7+ url = "https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-${version}-bundle.tar.gz";
8+ sha256 = "1k3z7kwcmr1pxaxfnak99fq5s8br9zbqbfpyw1afi86ykkph4g5z";
9+ };
10+
11+ sourceRoot = name;
12+
13+ buildInputs = [ makeWrapper ];
14+
15+ installPhase =
16+ ''
17+ mkdir -p $out
18+ cp -rfv * $out
19+ rm -fv $out/bin/nexus.bat
20+ '';
21+
22+ meta = with stdenv.lib; {
23+ description = "Repository manager for binary software components";
24+ homepage = http://www.sonatype.org/nexus;
25+ license = licenses.epl10;
26+ platforms = platforms.all;
27+ maintainers = [ maintainers.aespinosa ];
28+ };
29+}