blob: 3fd30f28876f0281e972a808a6debe9fcfe1394c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "SNVer";
version = "0.5.3";
src = fetchurl {
url = "mirror://sourceforge/snver/SNVer-${version}.tar.gz";
sha256 = "1y3c3gm1zdh4iz6zh1lyaaq1ks205wjm3vwx6wdsnh896xrphf5c";
};
buildInputs = [ makeWrapper ];
unpackPhase = ''
mkdir -p $out/libexec/SNVer
tar -zxvf $src -C $out/libexec/SNVer
rm -rf $out/libexec/SNVer/test
'';
installPhase = ''
mkdir $out/bin
makeWrapper ${jre}/bin/java $out/bin/SNVerPool --add-flags "-jar $out/libexec/SNVer/SNVerPool.jar"
'';
}
|