mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
java-service-wrapper: init at 3.5.41
This commit is contained in:
parent
5695999ffe
commit
6b73f36618
2 changed files with 43 additions and 0 deletions
41
pkgs/tools/system/java-service-wrapper/default.nix
Normal file
41
pkgs/tools/system/java-service-wrapper/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, fetchurl
|
||||
, jdk
|
||||
, ant, cunit, ncurses
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "java-service-wrapper";
|
||||
version = "3.5.41";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://wrapper.tanukisoftware.com/download/${version}/wrapper_${version}_src.tar.gz";
|
||||
sha256 = "0wvazc4y134brn99aa4rc9jdh1h2q3l7qhhvbcs6lhf4ym47sskm";
|
||||
};
|
||||
|
||||
buildInputs = [ jdk ];
|
||||
nativeBuildInputs = [ ant cunit ncurses ];
|
||||
|
||||
buildPhase = ''
|
||||
export ANT_HOME=${ant}
|
||||
export JAVA_HOME=${jdk}/lib/openjdk/jre/
|
||||
export JAVA_TOOL_OPTIONS=-Djava.home=$JAVA_HOME
|
||||
export CLASSPATH=${jdk}/lib/openjdk/lib/tools.jar
|
||||
|
||||
${if stdenv.isi686 then "./build32.sh" else "./build64.sh"}
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,lib}
|
||||
cp bin/wrapper $out/bin/wrapper
|
||||
cp lib/wrapper.jar $out/lib/wrapper.jar
|
||||
cp lib/libwrapper.so $out/lib/libwrapper.so
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Enables a Java Application to be run as a Windows Service or Unix Daemon";
|
||||
homepage = "https://wrapper.tanukisoftware.com/";
|
||||
license = licenses.gpl2;
|
||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||
maintainers = [ maintainers.suhr ];
|
||||
};
|
||||
}
|
|
@ -8335,6 +8335,8 @@ in
|
|||
|
||||
jasmin = callPackage ../development/compilers/jasmin { };
|
||||
|
||||
java-service-wrapper = callPackage ../tools/system/java-service-wrapper { };
|
||||
|
||||
javacard-devkit = pkgsi686Linux.callPackage ../development/compilers/javacard-devkit { };
|
||||
|
||||
julia_07 = callPackage ../development/compilers/julia/0.7.nix {
|
||||
|
|
Loading…
Reference in a new issue