diff --git a/pkgs/servers/sql/mssql/jdbc/jtds.nix b/pkgs/servers/sql/mssql/jdbc/jtds.nix new file mode 100644 index 000000000000..e67cc1b0ecb9 --- /dev/null +++ b/pkgs/servers/sql/mssql/jdbc/jtds.nix @@ -0,0 +1,27 @@ +{lib, stdenv, fetchurl, unzip}: + +stdenv.mkDerivation rec { + pname = "jtds"; + version = "1.3.1"; + + src = fetchurl { + url = "mirror://sourceforge/jtds/${version}/${pname}-${version}-dist.zip"; + sha256 = "sha256-eV0P8QdjfuHXzYssH8yHhynuH0Clg7MAece2Up3S9M0"; + }; + + sourceRoot = "."; + + installPhase = '' + mkdir -p $out/share/java + cp jtds-*.jar $out/share/java/jtds-jdbc.jar + ''; + + nativeBuildInputs = [ unzip ]; + + meta = with lib; { + description = "Pure Java (type 4) JDBC 3.0 driver for Microsoft SQL Server"; + homepage = "http://jtds.sourceforge.net/"; + license = licenses.lgpl21; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 37388112121c..8d98f53a3318 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13113,7 +13113,7 @@ with pkgs; squeak = callPackage ../development/compilers/squeak { }; squirrel-sql = callPackage ../development/tools/database/squirrel-sql { - drivers = [ mssql_jdbc mysql_jdbc postgresql_jdbc ]; + drivers = [ jtds_jdbc mssql_jdbc mysql_jdbc postgresql_jdbc ]; }; stalin = callPackage ../development/compilers/stalin { }; @@ -21353,6 +21353,7 @@ with pkgs; mysql_jdbc = callPackage ../servers/sql/mysql/jdbc { }; mssql_jdbc = callPackage ../servers/sql/mssql/jdbc { }; + jtds_jdbc = callPackage ../servers/sql/mssql/jdbc/jtds.nix { }; azuredatastudio = callPackage ../applications/misc/azuredatastudio { };