2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, makeWrapper, fetchurl, unzip, jdk }:
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-12-02 08:20:57 +00:00
|
|
|
pname = "sqlcl";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "23.4.0.023.2321";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${finalAttrs.version}.zip";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-8K2yuLYMJI9fFeDcHpWHYmIxZGC06/heYBEW1z2tGc4=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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/";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.unfreeRedistributable;
|
2022-12-02 08:20:57 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ misterio77 ];
|
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
})
|