Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environments/infinisim #68

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ What environments should **not** include:
| [SPEC benchmark](envs/spec-benchmark) | `spec-benchmark` |
| [Yocto](envs/yocto) | `yocto` |
| [Xilinx vitis](envs/xilinx-vitis) | `xilinx-vitis` |
| [InfiniSim](envs/infinisim) | `infinisim` |
| [InfiniTime](envs/infinitime) | `infinitime` |

## How to use

Expand Down
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
cc2538-bsl = import ./envs/cc2538-bsl/shell.nix { inherit pkgs; };
firefox = import ./envs/firefox/shell.nix { inherit pkgs; };
infinitime = import ./envs/infinitime/shell.nix { pkgs = pkgsUnfree; };
infinisim = import ./envs/infinisim/shell.nix { inherit pkgs; };
github-pages = import ./envs/github-pages/shell.nix { inherit pkgs; };
home-assistant = import ./envs/home-assistant/shell.nix { inherit pkgs; };
jruby = import ./envs/jruby/shell.nix { inherit pkgs; };
Expand Down
17 changes: 17 additions & 0 deletions envs/infinisim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# InfiniSim

Build environment for [InfiniSim](https://github.com/InfiniTimeOrg/InfiniSim).

## Building the Project

Build instructions:

```
$ nix-shell
$ cmake -DWITH_PNG=OFF -S . -B build
$ cmake --build build -j6
```

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.

Further build instructions: https://github.com/InfiniTimeOrg/InfiniSim/blob/main/README.md
17 changes: 17 additions & 0 deletions envs/infinisim/shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> {}, extraPkgs ? []
}:

pkgs.mkShell {
nativeBuildInputs = with pkgs; [
cmake
gnumake
SDL2
libpng
gcc12
ccache
(python3.withPackages(python: [
python.pillow
]))
nodePackages.lv_font_conv
] ++ extraPkgs;
}