···3131 # newlib expects CC to build for build platform, not host platform
3232 preConfigure = ''
3333 export CC=cc
3434+ '' +
3535+ # newlib tries to disable itself when building for Linux *except*
3636+ # when native-compiling. Unfortunately the check for "is cross
3737+ # compiling" was written when newlib was part of GCC and newlib
3838+ # was built along with GCC (therefore newlib was built to execute
3939+ # on the targetPlatform, not the hostPlatform). Unfortunately
4040+ # when newlib was extracted from GCC, this "is cross compiling"
4141+ # logic was not fixed. So we must disable it.
4242+ ''
4343+ substituteInPlace configure --replace 'noconfigdirs target-newlib target-libgloss' 'noconfigdirs'
3444 '';
35454646+3647 configurePlatforms = [ "build" "target" ];
3748 # flags copied from https://community.arm.com/support-forums/f/compilers-and-libraries-forum/53310/gcc-arm-none-eabi-what-were-the-newlib-compilation-options
3849 # sort alphabetically
3950 configureFlags = [
4040- "--host=${stdenv.buildPlatform.config}"
5151+ "--with-newlib"
5252+5353+ # The newlib configury uses `host` to refer to the platform
5454+ # which is being used to compile newlib. Ugh. It does this
5555+ # because of its history: newlib used to be distributed with and
5656+ # built as part of gcc.
5757+ #
5858+ # To prevent nixpkgs from going insane, this package presents the
5959+ # "normal" view to the outside world: the binaries in $out will
6060+ # execute on `stdenv.hostPlatform`. We then fool newlib's build
6161+ # process into doing the right thing.
6262+ "--host=${stdenv.targetPlatform.config}"
6363+4164 ] ++ (if !nanoizeNewlib then [
4265 "--disable-newlib-supplied-syscalls"
4366 "--disable-nls"
···11-{ lib, stdenv, makeWrapper, requireFile, unzip, jdk }:
11+{ lib, stdenv, makeWrapper, fetchurl, unzip, jdk }:
2233-stdenv.mkDerivation rec {
33+stdenv.mkDerivation (finalAttrs: {
44 pname = "sqlcl";
55 version = "23.2.0.178.1027";
6677- src = requireFile rec {
88- url = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/download/";
99- name = "sqlcl-${version}.zip";
1010- message = ''
1111- This Nix expression requires that ${name} already be part of the store. To
1212- obtain it you need to
1313-1414- - navigate to ${url}
1515- - make sure that it says "Version ${version}" above the list of downloads
1616- - if it does not, click on the "Previous Version" link below the
1717- download and repeat until the version is correct. This is necessary
1818- because as the time of this writing there exists no permanent link
1919- for the current version yet.
2020- Also consider updating this package yourself (you probably just need
2121- to change the `version` variable and update the sha256 to the one of
2222- the new file) or opening an issue at the nixpkgs repo.
2323- - click "Download"
2424- - sign in or create an oracle account if neccessary
2525- - on the next page, click the "${name}" link
2626-2727- and then add the file to the Nix store using either:
2828-2929- nix-store --add-fixed sha256 ${name}
3030-3131- or
3232-3333- nix-prefetch-url --type sha256 file:///path/to/${name}
3434- '';
77+ src = fetchurl {
88+ url = "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${finalAttrs.version}.zip";
359 hash = "sha256-wGqLlV88yYJrVblKzeG6VerfsEgCi1JQd49ONZmUB4Y=";
3610 };
3711···5832 also supporting your previously written SQL*Plus scripts.
5933 '';
6034 homepage = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/";
6161- license = licenses.unfree;
3535+ license = licenses.unfreeRedistributable;
6236 platforms = [ "x86_64-linux" ];
6337 maintainers = with maintainers; [ misterio77 ];
6438 };
6565-}
3939+})
···5858 backports_tempfile = throw "backports_tempfile has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28
5959 backports_unittest-mock = throw "backports_unittest-mock has been removed, since we no longer need to backport to python3.2"; # added 2023-07-28
6060 backports_weakref = throw "backports_weakref has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28
6161+ bash_kernel = bash-kernel; # added 2023-11-10
6162 beancount_docverif = beancount-docverif; # added 2023-10-08
6263 bedup = throw "bedup was removed because it was broken and abandoned upstream"; # added 2023-02-04
6364 bip_utils = bip-utils; # 2023-10-08