1 { lib, stdenv, makeWrapper, fetchurl, unzip, jdk }:
3 stdenv.mkDerivation (finalAttrs: {
5 version = "23.4.0.023.2321";
8 url = "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${finalAttrs.version}.zip";
9 hash = "sha256-8K2yuLYMJI9fFeDcHpWHYmIxZGC06/heYBEW1z2tGc4=";
12 nativeBuildInputs = [ makeWrapper unzip ];
14 unpackCmd = "unzip $curSrc";
20 makeWrapper $out/libexec/bin/sql $out/bin/sqlcl \
21 --set JAVA_HOME ${jdk.home} \
22 --chdir "$out/libexec/bin"
26 description = "Oracle's Oracle DB CLI client";
28 Oracle SQL Developer Command Line (SQLcl) is a free command line
29 interface for Oracle Database. It allows you to interactively or batch
30 execute SQL and PL/SQL. SQLcl provides in-line editing, statement
31 completion, and command recall for a feature-rich experience, all while
32 also supporting your previously written SQL*Plus scripts.
34 homepage = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/";
35 license = licenses.unfreeRedistributable;
36 platforms = [ "x86_64-linux" ];
37 maintainers = with maintainers; [ misterio77 ];