Skip to content

Commit 8e0122c

Browse files
Merge dev
* 'dev' of github.com:Autodesk/synthesis: chore: formatting nitpicks refactor: don't import nixpkgs chore(flake): reword description feat: flake files for nix dev shell
2 parents 4c68d91 + 462da62 commit 8e0122c

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

fission/flake.lock

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fission/flake.nix

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
description = "Synthesis' Web-Based Robotics Simulator";
3+
4+
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
5+
6+
outputs =
7+
inputs:
8+
let
9+
supportedSystems = [
10+
"x86_64-linux"
11+
"aarch64-linux"
12+
"x86_64-darwin"
13+
"aarch64-darwin"
14+
];
15+
forEachSupportedSystem =
16+
f: inputs.nixpkgs.lib.genAttrs supportedSystems (system: f inputs.nixpkgs.legacyPackages.${system});
17+
in
18+
{
19+
devShells = forEachSupportedSystem (pkgs: {
20+
default = pkgs.mkShell {
21+
nativeBuildInputs = with pkgs; [
22+
playwright-driver.browsers
23+
];
24+
25+
env = {
26+
PLAYWRIGHT_BROWSERS_PATH = pkgs.playwright-driver.browsers;
27+
PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS = true;
28+
};
29+
};
30+
});
31+
32+
formatter = forEachSupportedSystem (pkgs: pkgs.nixfmt-tree);
33+
};
34+
}

0 commit comments

Comments
 (0)