Skip to content

Commit 98d6bd9

Browse files
w4tsnmergify[bot]
authored andcommitted
add infinisim environment
1 parent df38162 commit 98d6bd9

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ What environments should **not** include:
3131
| [SPEC benchmark](envs/spec-benchmark) | `spec-benchmark` |
3232
| [Yocto](envs/yocto) | `yocto` |
3333
| [Xilinx vitis](envs/xilinx-vitis) | `xilinx-vitis` |
34+
| [InfiniSim](envs/infinisim) | `infinisim` |
3435

3536
## How to use
3637

default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
cc2538-bsl = import ./envs/cc2538-bsl/shell.nix { inherit pkgs; };
66
firefox = import ./envs/firefox/shell.nix { inherit pkgs; };
77
infinitime = import ./envs/infinitime/shell.nix { pkgs = pkgsUnfree; };
8+
infinisim = import ./envs/infinisim/shell.nix { inherit pkgs; };
89
github-pages = import ./envs/github-pages/shell.nix { inherit pkgs; };
910
home-assistant = import ./envs/home-assistant/shell.nix { inherit pkgs; };
1011
jruby = import ./envs/jruby/shell.nix { inherit pkgs; };

envs/infinisim/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# InfiniSim
2+
3+
Build environment for [InfiniSim](https://github.com/InfiniTimeOrg/InfiniSim).
4+
5+
## Building the Project
6+
7+
Build instructions:
8+
9+
```
10+
$ nix-shell
11+
$ cmake -DWITH_PNG=OFF -S . -B build
12+
$ cmake --build build -j6
13+
```
14+
15+
By default the build uses a version of the [InfiniTime sources](https://github.com/InfiniTimeOrg/InfiniTime) in `./InfiniTime` as git submodule. You might want to delete this submodule and use a symlink to a local version of InfiniTime or update the submodule to track your own fork of InfiniTime.
16+
17+
Further build instructions: https://github.com/InfiniTimeOrg/InfiniSim/blob/main/README.md

envs/infinisim/shell.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{ pkgs ? import <nixpkgs> {}, extraPkgs ? []
2+
}:
3+
4+
pkgs.mkShell {
5+
nativeBuildInputs = with pkgs; [
6+
cmake
7+
gnumake
8+
SDL2
9+
libpng
10+
gcc12
11+
ccache
12+
(python3.withPackages(python: [
13+
python.pillow
14+
]))
15+
nodePackages.lv_font_conv
16+
] ++ extraPkgs;
17+
}

0 commit comments

Comments
 (0)