refactored shells nix code
This commit is contained in:
parent
37dfc49c58
commit
3f50cde0a6
9
.github/workflows/ci-cachix.yml
vendored
9
.github/workflows/ci-cachix.yml
vendored
|
@ -14,6 +14,7 @@ on:
|
|||
|
||||
jobs:
|
||||
flake-lints:
|
||||
name: All lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
@ -38,6 +39,7 @@ jobs:
|
|||
run: nix build .#vscode-lint
|
||||
|
||||
flake-packages:
|
||||
name: Builds, tests, and bundles
|
||||
runs-on: ubuntu-latest
|
||||
needs: flake-lints
|
||||
steps:
|
||||
|
@ -63,6 +65,7 @@ jobs:
|
|||
run: nix build .#components-bundle
|
||||
|
||||
flake-devshells:
|
||||
name: Development shell environment
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
@ -76,5 +79,7 @@ jobs:
|
|||
with:
|
||||
name: quantified-uncertainty
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
- name: Build devshell
|
||||
run: nix develop -c echo "built devshell"
|
||||
- name: Build js devshell
|
||||
run: nix develop .#js -c echo "built js devshell"
|
||||
- name: Build js & wasm devshell
|
||||
run: nix develop -c echo "built js & wasm devshell"
|
||||
|
|
|
@ -74,8 +74,10 @@
|
|||
};
|
||||
|
||||
# developing
|
||||
devShells = flake-utils.lib.flattenTree {
|
||||
default = (import ./nix/shell.nix { inherit pkgs; }).shell;
|
||||
devShells = let shellNix = import ./nix/shell.nix { inherit pkgs; };
|
||||
in flake-utils.lib.flattenTree {
|
||||
default = shellNix.all;
|
||||
js = shellNix.just-js;
|
||||
};
|
||||
};
|
||||
in flake-utils.lib.eachDefaultSystem (system:
|
||||
|
|
|
@ -1,21 +1,25 @@
|
|||
{ pkgs }:
|
||||
with pkgs; {
|
||||
shell = mkShell {
|
||||
name = "SQUIGGLE_yarn-wasm-devshell";
|
||||
buildInputs = [
|
||||
with pkgs;
|
||||
let
|
||||
js = [ yarn nodejs nodePackages.ts-node ];
|
||||
rust = [
|
||||
wasm-pack
|
||||
cargo
|
||||
yarn
|
||||
nodejs
|
||||
nodePackages.ts-node
|
||||
rustup
|
||||
pkg-config
|
||||
libressl
|
||||
nixfmt
|
||||
rustfmt
|
||||
wasmtime
|
||||
binaryen
|
||||
wasm-bindgen-cli
|
||||
];
|
||||
in {
|
||||
all = mkShell {
|
||||
name = "squiggle_yarn-wasm-devshell";
|
||||
buildInputs = builtins.concatLists [ js rust [ nixfmt ] ];
|
||||
};
|
||||
just-js = mkShell {
|
||||
name = "squiggle_yarn-devshell";
|
||||
buildInputs = js ++ [ nixfmt ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user