1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/database/sqldeveloper/default.nix

47 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv, makeWrapper, requireFile, unzip, openjdk }:
2015-03-12 13:00:14 +00:00
stdenv.mkDerivation rec {
2017-09-28 00:36:37 +01:00
name = "sqldeveloper-17.2.0.188.1159";
2015-03-12 13:00:14 +00:00
src = requireFile {
name = "${name}-no-jre.zip";
url = "http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/";
2017-09-28 00:36:37 +01:00
/* Actual direct link (would it be allowed to give that link?): http://download.oracle.com/otn/java/sqldeveloper/sqldeveloper-17.2.0.188.1159-no-jre.zip */
sha256 = "03960705fabc7b3fa98d55a31ee6a17f783b8c8b01462613c6b6a699e8cae4d5";
2015-03-12 13:00:14 +00:00
};
buildInputs = [ makeWrapper unzip ];
buildCommand = ''
mkdir -p $out/bin
echo >$out/bin/sqldeveloper '#! ${stdenv.shell}'
echo >>$out/bin/sqldeveloper 'export JAVA_HOME=${openjdk}/lib/openjdk'
echo >>$out/bin/sqldeveloper 'export JDK_HOME=$JAVA_HOME'
echo >>$out/bin/sqldeveloper "cd $out/lib/${name}/sqldeveloper/bin"
echo >>$out/bin/sqldeveloper '${stdenv.shell} sqldeveloper "$@"'
chmod +x $out/bin/sqldeveloper
2015-03-12 13:00:14 +00:00
mkdir -p $out/lib/
2015-03-12 13:00:14 +00:00
cd $out
unzip ${src}
mv sqldeveloper $out/lib/${name}
2015-03-12 13:00:14 +00:00
'';
meta = with stdenv.lib; {
2015-04-28 09:54:58 +01:00
description = "Oracle's Oracle DB GUI client";
2015-03-12 13:00:14 +00:00
longDescription = ''
Oracle SQL Developer is a free integrated development environment that
simplifies the development and management of Oracle Database in both
traditional and Cloud deployments. SQL Developer offers complete
end-to-end development of your PL/SQL applications, a worksheet for
running queries and scripts, a DBA console for managing the database,
a reports interface, a complete data modeling solution, and a migration
platform for moving your 3rd party databases to Oracle.
'';
homepage = http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/;
2015-03-12 13:00:14 +00:00
license = licenses.unfree;
maintainers = [ maintainers.ardumont ];
platforms = platforms.linux;
};
}