blob: b4edf602a48f655566ec43f635fe6985e6940a2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
stdenv,
makeWrapper,
fetchurl,
unzip,
jdk,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sqlcl";
version = "26.2.1.222.1617";
src = fetchurl {
url = "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${finalAttrs.version}.zip";
hash = "sha256-/4EJVJk5J4NrMEnrfGQE09py61ObKj9yVQT3KXNnL6M=";
};
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 = {
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 = lib.licenses.unfreeRedistributable;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ misterio77 ];
};
})
|