mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
squirrel-sql: Add MSSQL driver. (#55626)
This commit is contained in:
parent
0eaec72f4c
commit
31cf973dc7
@ -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 \
|
||||
|
6
pkgs/servers/sql/mssql/jdbc/builder.sh
Normal file
6
pkgs/servers/sql/mssql/jdbc/builder.sh
Normal file
@ -0,0 +1,6 @@
|
||||
source $stdenv/setup
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p $out/share/java
|
||||
cp $src $out/share/java/mssql-jdbc.jar
|
16
pkgs/servers/sql/mssql/jdbc/default.nix
Normal file
16
pkgs/servers/sql/mssql/jdbc/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user