hsqldb: 1.8.0 -> 2.5.0
Changelist: http://hsqldb.org/doc/2.0/changelist_2_0.txt
This commit is contained in:
parent
c40d1486cc
commit
bfbffd3c82
2 changed files with 27 additions and 15 deletions
|
@ -1,6 +0,0 @@
|
|||
source $stdenv/setup
|
||||
|
||||
unzip $src
|
||||
cd hsqldb*
|
||||
mkdir -p $out
|
||||
cp -R * $out/
|
|
@ -1,19 +1,37 @@
|
|||
{ stdenv, fetchurl, unzip
|
||||
}:
|
||||
{ stdenv, fetchurl, unzip, makeWrapper, jre }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "hsqldb-2.4.0";
|
||||
builder = ./builder.sh;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hsqldb";
|
||||
version = "2.5.0";
|
||||
underscoreMajMin = stdenv.lib.strings.replaceChars ["."] ["_"] (stdenv.lib.versions.majorMinor version);
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/hsqldb/hsqldb_1_8_0_9.zip;
|
||||
sha256 = "1v5dslwsqb7csjmi5g78pghsay2pszidvlzhyi79y18mra5iv3g9";
|
||||
url = "mirror://sourceforge/project/hsqldb/hsqldb/hsqldb_${underscoreMajMin}/hsqldb-${version}.zip";
|
||||
sha256 = "0s64w7qq5vayrzcmdhrdfmd6iqqv6x6fpiq9lpy2gva3dckv3q6j";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip
|
||||
];
|
||||
nativeBuildInputs = [ unzip makeWrapper ];
|
||||
buildInputs = [ jre ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/lib $out/bin
|
||||
cp -R hsqldb/lib/*.jar $out/lib
|
||||
|
||||
makeWrapper ${jre}/bin/java $out/bin/hsqldb --add-flags "-classpath $out/lib/hsqldb.jar org.hsqldb.server.Server"
|
||||
makeWrapper ${jre}/bin/java $out/bin/runServer --add-flags "-classpath $out/lib/hsqldb.jar org.hsqldb.server.Server"
|
||||
makeWrapper ${jre}/bin/java $out/bin/runManagerSwing --add-flags "-classpath $out/lib/hsqldb.jar org.hsqldb.util.DatabaseManagerSwing"
|
||||
makeWrapper ${jre}/bin/java $out/bin/runWebServer --add-flags "-classpath $out/lib/hsqldb.jar org.hsqldb.server.WebServer"
|
||||
makeWrapper ${jre}/bin/java $out/bin/runManager --add-flags "-classpath $out/lib/hsqldb.jar org.hsqldb.util.DatabaseManager"
|
||||
makeWrapper ${jre}/bin/java $out/bin/sqltool --add-flags "-jar $out/lib/sqltool.jar"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://hsqldb.org";
|
||||
description = "A relational, embedable database management system written in Java and a set of related tools";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue