nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 32 lines 660 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 unzip, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "jtds"; 10 version = "1.3.1"; 11 12 src = fetchurl { 13 url = "mirror://sourceforge/jtds/${version}/${pname}-${version}-dist.zip"; 14 sha256 = "sha256-eV0P8QdjfuHXzYssH8yHhynuH0Clg7MAece2Up3S9M0"; 15 }; 16 17 sourceRoot = "."; 18 19 installPhase = '' 20 mkdir -p $out/share/java 21 cp jtds-*.jar $out/share/java/jtds-jdbc.jar 22 ''; 23 24 nativeBuildInputs = [ unzip ]; 25 26 meta = with lib; { 27 description = "Pure Java (type 4) JDBC 3.0 driver for Microsoft SQL Server"; 28 homepage = "https://jtds.sourceforge.net/"; 29 license = licenses.lgpl21; 30 platforms = platforms.unix; 31 }; 32}