at 23.11-beta 1.3 kB view raw
1{ lib, stdenv, makeWrapper, fetchurl, unzip, jdk }: 2 3stdenv.mkDerivation (finalAttrs: { 4 pname = "sqlcl"; 5 version = "23.2.0.178.1027"; 6 7 src = fetchurl { 8 url = "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${finalAttrs.version}.zip"; 9 hash = "sha256-wGqLlV88yYJrVblKzeG6VerfsEgCi1JQd49ONZmUB4Y="; 10 }; 11 12 nativeBuildInputs = [ makeWrapper unzip ]; 13 14 unpackCmd = "unzip $curSrc"; 15 16 installPhase = '' 17 mkdir -p $out/libexec 18 mv * $out/libexec/ 19 20 makeWrapper $out/libexec/bin/sql $out/bin/sqlcl \ 21 --set JAVA_HOME ${jdk.home} \ 22 --chdir "$out/libexec/bin" 23 ''; 24 25 meta = with lib; { 26 description = "Oracle's Oracle DB CLI client"; 27 longDescription = '' 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. 33 ''; 34 homepage = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/"; 35 license = licenses.unfreeRedistributable; 36 platforms = [ "x86_64-linux" ]; 37 maintainers = with maintainers; [ misterio77 ]; 38 }; 39})