depot/third_party/nixpkgs/pkgs/development/tools/database/sqlcl/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

39 lines
1.3 KiB
Nix

{ lib, stdenv, makeWrapper, fetchurl, unzip, jdk }:
stdenv.mkDerivation (finalAttrs: {
pname = "sqlcl";
version = "24.2.0.180.1721";
src = fetchurl {
url = "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${finalAttrs.version}.zip";
hash = "sha256-22cLWfeEqJm48KeUDDIMOnPu/R8oEAtBNBn3slfMGAE=";
};
nativeBuildInputs = [ makeWrapper unzip ];
unpackCmd = "unzip $curSrc";
installPhase = ''
mkdir -p $out/libexec
mv * $out/libexec/
makeWrapper $out/libexec/bin/sql $out/bin/sqlcl \
--set JAVA_HOME ${jdk.home} \
--chdir "$out/libexec/bin"
'';
meta = with lib; {
description = "Oracle's Oracle DB CLI client";
longDescription = ''
Oracle SQL Developer Command Line (SQLcl) is a free command line
interface for Oracle Database. It allows you to interactively or batch
execute SQL and PL/SQL. SQLcl provides in-line editing, statement
completion, and command recall for a feature-rich experience, all while
also supporting your previously written SQL*Plus scripts.
'';
homepage = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/";
license = licenses.unfreeRedistributable;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ misterio77 ];
};
})