mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
1.3 KiB
Nix
40 lines
1.3 KiB
Nix
{ lib, stdenv, makeWrapper, fetchurl, unzip, jdk }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "sqlcl";
|
|
version = "24.3.0.285.0530";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${finalAttrs.version}.zip";
|
|
hash = "sha256-WUGPFJENRvSOTOPtkxEjITZASajWrNgsVJbuMEKm1SI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|