alpha
Login
or
Join now
tombl.dev
/
distro
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
switch builder to bash
author
Thomas Stokes
date
1 year ago
(Jan 15, 2025, 11:29 PM +0800)
commit
68380207
68380207700840b1b2746c9cb943ea80506d47ed
parent
d12a5b49
d12a5b494fd4c90874af628cfb7bee2d36758f99
+12
-13
2 changed files
Expand all
Collapse all
Unified
Split
all-packages.nix
host-packages.nix
+11
-13
all-packages.nix
Reviewed
···
7
7
8
8
let
9
9
mkRun =
10
10
-
path: args: command:
10
10
+
{ path, builder }:
11
11
+
args: command:
11
12
let
12
13
setup =
13
14
if args ? src then
···
22
23
derivation (
23
24
{
24
25
system = currentSystem;
25
25
-
builder = "${pkgs.busybox}/bin/ash";
26
26
+
inherit builder;
26
27
args = [
27
28
"-euc"
28
29
''
29
30
if [ 0 -eq "$NIX_BUILD_CORES" ]; then
30
31
NIX_BUILD_CORES=$(${pkgs.busybox}/bin/nproc)
31
32
fi
32
32
-
exec ${pkgs.busybox}/bin/ash -eux $commandPath
33
33
+
exec ${builder} -eux $commandPath
33
34
''
34
35
];
35
36
PATH = lib.makeBinPath ((args.path or [ ]) ++ path);
···
39
40
// (removeAttrs args [ "srcPath" ])
40
41
);
41
42
42
42
-
run0 = mkRun [ pkgs.busybox ];
43
43
-
44
43
wasmpkgs =
45
44
{
46
45
inherit lib inputs;
47
47
-
sh = run0 { name = "sh"; } ''
48
48
-
mkdir -p $out/bin
49
49
-
ln -s ${pkgs.busybox}/bin/ash $out/bin/sh
50
50
-
'';
51
51
-
run = mkRun [
52
52
-
pkgs.busybox
53
53
-
pkgs.sh
54
54
-
];
46
46
+
run = mkRun {
47
47
+
path = [
48
48
+
pkgs.busybox
49
49
+
pkgs.bash
50
50
+
];
51
51
+
builder = "${pkgs.bash}/bin/bash";
52
52
+
};
55
53
}
56
54
// lib.packagesFromDirectoryRecursive {
57
55
callPackage = lib.callPackageWith pkgs;
+1
host-packages.nix
Reviewed
···
11
11
clang-host = llvm.clang;
12
12
inherit (llvm) lld;
13
13
inherit (pkgs)
14
14
+
bash
14
15
bc
15
16
bison
16
17
busybox