@ -5,36 +5,45 @@
stdenv . mkDerivation rec {
pname = " j a v a - s e r v i c e - w r a p p e r " ;
version = " 3 . 5 . 4 8 " ;
version = " 3 . 5 . 4 9 " ;
src = fetchurl {
url = " h t t p s : / / w r a p p e r . t a n u k i s o f t w a r e . c o m / d o w n l o a d / ${ version } / w r a p p e r _ ${ version } _ s r c . t a r . g z " ;
sha256 = " s h a 2 5 6 - w o A N h w L O h v T n q + B n c 8 z C I D Z E J O v 3 s w N f e I / 3 n Q 7 Y 1 S M = " ;
hash = " s h a 2 5 6 - g c S c F 5 L I q W V B v 8 e r I 3 h G 5 t t 5 B Z P O 2 X l h F A C z 1 Y 6 0 + v 4 = " ;
} ;
buildInputs = [ jdk ] ;
nativeBuildInputs = [ ant cunit ncurses ] ;
buildPhase = ''
runHook preBuild
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 " . / b u i l d 3 2 . s h " else " . / b u i l d 6 4 . s h " }
runHook postBuild
'' ;
installPhase = ''
runHook preInstall
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
runHook postInstall
'' ;
meta = with lib ; {
description = " E n a b l e s a J a v a A p p l i c a t i o n t o b e r u n a s a W i n d o w s S e r v i c e o r U n i x D a e m o n " ;
homepage = " h t t p s : / / w r a p p e r . t a n u k i s o f t w a r e . c o m / " ;
license = licenses . gpl2 ;
changelog = " h t t p s : / / w r a p p e r . t a n u k i s o f t w a r e . c o m / d o c / e n g l i s h / r e l e a s e - n o t e s . h t m l # ${ version } " ;
license = licenses . gpl2Only ;
platforms = [ " x 8 6 _ 6 4 - l i n u x " " i 6 8 6 - l i n u x " ] ;
maintainers = [ maintainers . suhr ] ;
} ;