tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
busybox: fix static build
Nikolay Amiantov
9 years ago
28740462
60624a46
+5
-3
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
busybox
default.nix
+5
-3
pkgs/os-specific/linux/busybox/default.nix
···
1
1
-
{ stdenv, fetchurl, musl
1
1
+
{ stdenv, lib, fetchurl, glibc, musl
2
2
, enableStatic ? false
3
3
, enableMinimal ? false
4
4
, useMusl ? false
···
48
48
49
49
CONFIG_LFS y
50
50
51
51
-
${stdenv.lib.optionalString enableStatic ''
51
51
+
${lib.optionalString enableStatic ''
52
52
CONFIG_STATIC y
53
53
''}
54
54
···
64
64
EOF
65
65
66
66
make oldconfig
67
67
-
'' + stdenv.lib.optionalString useMusl ''
67
67
+
'' + lib.optionalString useMusl ''
68
68
makeFlagsArray+=("CC=gcc -isystem ${musl}/include -B${musl}/lib -L${musl}/lib")
69
69
'';
70
70
+
71
71
+
buildInputs = lib.optionals (enableStatic && !useMusl) [ glibc glibc.static ];
70
72
71
73
crossAttrs = {
72
74
extraCrossConfig = ''