about summary refs log tree commit diff
path: root/pkgs/development/tools/repository-managers/nexus/default.nix
blob: 1b2f48b696c30d55b7586a54c040e6c1104320b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
  name = "nexus-${version}";
  version = "2.12.0-01";

  src = fetchurl {
    url = "https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-${version}-bundle.tar.gz";
    sha256 = "1k3z7kwcmr1pxaxfnak99fq5s8br9zbqbfpyw1afi86ykkph4g5z";
  };

  sourceRoot = name;

  buildInputs = [ makeWrapper ];

  installPhase = 
    ''
      mkdir -p $out
      cp -rfv * $out
      rm -fv $out/bin/nexus.bat
    '';

  meta = with stdenv.lib; {
    description = "Repository manager for binary software components";
    homepage = http://www.sonatype.org/nexus;
    license = licenses.epl10;
    platforms = platforms.all;
    maintainers = [ maintainers.aespinosa ];
  };
}