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
add runner app
author
Thomas Stokes
date
1 year ago
(Jan 18, 2025, 6:36 PM +0800)
commit
c06441fd
c06441fdf87deb29d529caa4ae4deca6ae9d4dfc
parent
bbf2d35f
bbf2d35f215ca596b27335d4fafb381216c9ebf5
+24
-5
4 changed files
Expand all
Collapse all
Unified
Split
flake
apps.nix
flake.nix
packages
linux
package.nix
run
package.nix
+1
flake.nix
Reviewed
···
32
32
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
33
33
imports = [
34
34
# keep-sorted start
35
35
+
./flake/apps.nix
35
36
./flake/format.nix
36
37
./flake/git-hooks.nix
37
38
./flake/shell.nix
+22
flake/apps.nix
Reviewed
···
1
1
+
{
2
2
+
perSystem =
3
3
+
{ pkgs, self', ... }:
4
4
+
let
5
5
+
inherit (self'.legacyPackages) linux initramfs;
6
6
+
in
7
7
+
{
8
8
+
apps.runner.program =
9
9
+
let
10
10
+
runner-lib = pkgs.runCommand "wasm-linux-runner-lib" { src = "${linux.src}/tools/wasm"; } ''
11
11
+
mkdir -p $out/bin
12
12
+
13
13
+
ln -s ${linux} $out/dist
14
14
+
cp -r $src/src $out/src
15
15
+
cp $src/run.js $out
16
16
+
'';
17
17
+
in
18
18
+
pkgs.writeShellScriptBin "wasm-linux-runner" ''
19
19
+
deno run --allow-read ${runner-lib}/run.js --initcpio=${initramfs} "$@"
20
20
+
'';
21
21
+
};
22
22
+
}
+1
-4
packages/linux/package.nix
Reviewed
···
61
61
fi
62
62
done
63
63
64
64
-
mkdir $out
65
65
-
rm tools/wasm/public/dist
66
66
-
cp tools/wasm/public/* $out/
67
67
-
cp -r tools/wasm/dist $out/dist
64
64
+
cp -r tools/wasm/dist $out
68
65
69
66
make headers_install INSTALL_HDR_PATH=$headers
70
67
''
-1
packages/run/package.nix
Reviewed
···
49
49
}
50
50
// (removeAttrs args [
51
51
"path"
52
52
-
"src"
53
52
])
54
53
)