tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
newlib: Add parameter for "nano" variant
John Ericson
4 years ago
5ea6bb83
d408c228
+19
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
misc
newlib
default.nix
+19
-3
pkgs/development/misc/newlib/default.nix
···
1
1
-
{ stdenv, fetchurl, buildPackages }:
1
1
+
{ stdenv, fetchurl, buildPackages
2
2
+
, # "newlib-nano" is what the official ARM embedded toolchain calls this build
3
3
+
# configuration that prioritizes low space usage. We include it as a preset
4
4
+
# for embedded projects striving for a similar configuration.
5
5
+
nanoizeNewlib ? false
6
6
+
}:
2
7
3
8
stdenv.mkDerivation rec {
4
9
pname = "newlib";
···
22
27
23
28
"--disable-newlib-supplied-syscalls"
24
29
"--disable-nls"
30
30
+
"--enable-newlib-retargetable-locking"
31
31
+
] ++ (if !nanoizeNewlib then [
25
32
"--enable-newlib-io-long-long"
26
33
"--enable-newlib-register-fini"
27
27
-
"--enable-newlib-retargetable-locking"
28
28
-
];
34
34
+
] else [
35
35
+
"--enable-newlib-reent-small"
36
36
+
"--disable-newlib-fvwrite-in-streamio"
37
37
+
"--disable-newlib-fseek-optimization"
38
38
+
"--disable-newlib-wide-orient"
39
39
+
"--enable-newlib-nano-malloc"
40
40
+
"--disable-newlib-unbuf-stream-opt"
41
41
+
"--enable-lite-exit"
42
42
+
"--enable-newlib-global-atexit"
43
43
+
"--enable-newlib-nano-formatted-io"
44
44
+
]);
29
45
30
46
dontDisableStatic = true;
31
47