···31 # newlib expects CC to build for build platform, not host platform
32 preConfigure = ''
33 export CC=cc
000000000034 '';
35036 configurePlatforms = [ "build" "target" ];
37 # 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
38 # sort alphabetically
39 configureFlags = [
40- "--host=${stdenv.buildPlatform.config}"
00000000000041 ] ++ (if !nanoizeNewlib then [
42 "--disable-newlib-supplied-syscalls"
43 "--disable-nls"
···31 # newlib expects CC to build for build platform, not host platform
32 preConfigure = ''
33 export CC=cc
34+ '' +
35+ # newlib tries to disable itself when building for Linux *except*
36+ # when native-compiling. Unfortunately the check for "is cross
37+ # compiling" was written when newlib was part of GCC and newlib
38+ # was built along with GCC (therefore newlib was built to execute
39+ # on the targetPlatform, not the hostPlatform). Unfortunately
40+ # when newlib was extracted from GCC, this "is cross compiling"
41+ # logic was not fixed. So we must disable it.
42+ ''
43+ substituteInPlace configure --replace 'noconfigdirs target-newlib target-libgloss' 'noconfigdirs'
44 '';
4546+47 configurePlatforms = [ "build" "target" ];
48 # 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
49 # sort alphabetically
50 configureFlags = [
51+ "--with-newlib"
52+53+ # The newlib configury uses `host` to refer to the platform
54+ # which is being used to compile newlib. Ugh. It does this
55+ # because of its history: newlib used to be distributed with and
56+ # built as part of gcc.
57+ #
58+ # To prevent nixpkgs from going insane, this package presents the
59+ # "normal" view to the outside world: the binaries in $out will
60+ # execute on `stdenv.hostPlatform`. We then fool newlib's build
61+ # process into doing the right thing.
62+ "--host=${stdenv.targetPlatform.config}"
63+64 ] ++ (if !nanoizeNewlib then [
65 "--disable-newlib-supplied-syscalls"
66 "--disable-nls"
···1-{ lib, stdenv, makeWrapper, requireFile, unzip, jdk }:
23-stdenv.mkDerivation rec {
4 pname = "sqlcl";
5 version = "23.2.0.178.1027";
67- src = requireFile rec {
8- url = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/download/";
9- name = "sqlcl-${version}.zip";
10- message = ''
11- This Nix expression requires that ${name} already be part of the store. To
12- obtain it you need to
13-14- - navigate to ${url}
15- - make sure that it says "Version ${version}" above the list of downloads
16- - if it does not, click on the "Previous Version" link below the
17- download and repeat until the version is correct. This is necessary
18- because as the time of this writing there exists no permanent link
19- for the current version yet.
20- Also consider updating this package yourself (you probably just need
21- to change the `version` variable and update the sha256 to the one of
22- the new file) or opening an issue at the nixpkgs repo.
23- - click "Download"
24- - sign in or create an oracle account if neccessary
25- - on the next page, click the "${name}" link
26-27- and then add the file to the Nix store using either:
28-29- nix-store --add-fixed sha256 ${name}
30-31- or
32-33- nix-prefetch-url --type sha256 file:///path/to/${name}
34- '';
35 hash = "sha256-wGqLlV88yYJrVblKzeG6VerfsEgCi1JQd49ONZmUB4Y=";
36 };
37···58 also supporting your previously written SQL*Plus scripts.
59 '';
60 homepage = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/";
61- license = licenses.unfree;
62 platforms = [ "x86_64-linux" ];
63 maintainers = with maintainers; [ misterio77 ];
64 };
65-}
···58 backports_tempfile = throw "backports_tempfile has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28
59 backports_unittest-mock = throw "backports_unittest-mock has been removed, since we no longer need to backport to python3.2"; # added 2023-07-28
60 backports_weakref = throw "backports_weakref has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28
061 beancount_docverif = beancount-docverif; # added 2023-10-08
62 bedup = throw "bedup was removed because it was broken and abandoned upstream"; # added 2023-02-04
63 bip_utils = bip-utils; # 2023-10-08
···58 backports_tempfile = throw "backports_tempfile has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28
59 backports_unittest-mock = throw "backports_unittest-mock has been removed, since we no longer need to backport to python3.2"; # added 2023-07-28
60 backports_weakref = throw "backports_weakref has been removed, since we no longer need to backport to python3.3"; # added 2023-07-28
61+ bash_kernel = bash-kernel; # added 2023-11-10
62 beancount_docverif = beancount-docverif; # added 2023-10-08
63 bedup = throw "bedup was removed because it was broken and abandoned upstream"; # added 2023-02-04
64 bip_utils = bip-utils; # 2023-10-08