squirrel-sql: Add MSSQL driver. (#55626)

This commit is contained in:
cresh 2019-05-05 02:22:15 +02:00 committed by Aaron Andersen
parent 0eaec72f4c
commit 31cf973dc7
4 changed files with 27 additions and 1 deletions

View File

@ -47,6 +47,8 @@ in stdenv.mkDerivation rec {
makeWrapper $out/share/squirrel-sql/squirrel-sql.sh $out/bin/squirrel-sql \
--set CLASSPATH "$cp" \
--set JAVA_HOME "${jre}"
# Make sure above `CLASSPATH` gets picked up
substituteInPlace $out/share/squirrel-sql/squirrel-sql.sh --replace "-cp \"\$CP\"" "-cp \"\$CLASSPATH:\$CP\""
mkdir -p $out/share/icons/hicolor/32x32/apps
ln -s $out/share/squirrel-sql/icons/acorn.png \

View File

@ -0,0 +1,6 @@
source $stdenv/setup
set -e
mkdir -p $out/share/java
cp $src $out/share/java/mssql-jdbc.jar

View File

@ -0,0 +1,16 @@
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
pname = "mssql-jdbc";
version = "7.2.2";
builder = ./builder.sh;
src = fetchurl {
url = "https://github.com/Microsoft/mssql-jdbc/releases/download/v${version}/${pname}-${version}.jre8.jar";
sha256 = "09psxjy1v3khq8lcq6h9mbgyijsgawf0z2qryk1l91ypnwl8s3pg";
};
meta = {
platforms = stdenv.lib.platforms.unix;
};
}

View File

@ -7902,7 +7902,7 @@ in
squeak = callPackage ../development/compilers/squeak { };
squirrel-sql = callPackage ../development/tools/database/squirrel-sql {
drivers = [ mysql_jdbc postgresql_jdbc ];
drivers = [ mssql_jdbc mysql_jdbc postgresql_jdbc ];
};
stalin = callPackage ../development/compilers/stalin { };
@ -14276,6 +14276,8 @@ in
mysql_jdbc = callPackage ../servers/sql/mysql/jdbc { };
mssql_jdbc = callPackage ../servers/sql/mssql/jdbc { };
miniflux = callPackage ../servers/miniflux { };
nagios = callPackage ../servers/monitoring/nagios { };