1
1
with builtins ;
2
2
{
3
- bubblewrap ,
4
- nix ,
3
+ bubblewrapStatic ? pkgsStatic . bubblewrap ,
4
+ # fix: builder failed to produce output path for output 'man'
5
+ # https://github.com/milahu/nixpkgs/issues/83
6
+ #nixStatic ? pkgsStatic.nix,
7
+ nixGitStatic ? pkgsStatic . nixVersions . nixComponents_git . nix-everything ,
5
8
unzip ,
6
9
zip ,
7
10
unixtools ,
@@ -12,14 +15,16 @@ with builtins;
12
15
patchelf ,
13
16
cacert ,
14
17
pkgs ,
15
- # no. pkgsStatic.nix and pkgsStatic.proot are not cached
16
- # still an issue: https://github.com/NixOS/nixpkgs/issues/81137
17
- # pkgsStatic,
18
- busybox ,
18
+ pkgsStatic ,
19
+ busyboxStatic ? pkgsStatic . busybox ,
19
20
gnutar ,
20
21
xz ,
21
- zstd ,
22
- proot ,
22
+ zstdStatic ? pkgsStatic . zstd ,
23
+ # fix: ld: attempted static link of dynamic object
24
+ # https://gitlab.com/ita1024/waf/-/issues/2467
25
+ #prootStatic ? pkgsStatic.proot,
26
+ callPackage ,
27
+ prootStatic ? ( callPackage ./proot/alpine.nix { } ) ,
23
28
compression ? "zstd -3 -T1" ,
24
29
buildSystem ? builtins . currentSystem ,
25
30
# # tar crashed on emulated aarch64 system
@@ -32,6 +37,17 @@ with builtins;
32
37
with lib ;
33
38
let
34
39
40
+ nixStatic = nixGitStatic ;
41
+
42
+ # stage1 bins
43
+ busybox = busyboxStatic ;
44
+ zstd = zstdStatic ;
45
+
46
+ # stage2 bins
47
+ nix = nixStatic ;
48
+ bubblewrap = bubblewrapStatic ;
49
+ proot = prootStatic ;
50
+
35
51
pname =
36
52
if bundledPackage == null
37
53
then "nix-portable"
0 commit comments