Skip to content

Commit 29ae289

Browse files
OJarrisonndavidbtadokoro
authored andcommitted
feat: introduce .idx/dev.nix for Google IDX support
Google IDX is a cloud-based toolset for building, testing, and deploying apps. To support `patch-hub` development in this platform, add file `.idx/dev.nix` with the project specific configurations. [Maintainer edits] - Rephrase commit message Signed-off-by: OJarrisonn <[email protected]> Reviewed-by: David Tadokoro <[email protected]> Signed-off-by: David Tadokoro <[email protected]>
1 parent e713084 commit 29ae289

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.idx/dev.nix

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# To learn more about how to use Nix to configure your environment
2+
# see: https://developers.google.com/idx/guides/customize-idx-env
3+
{ pkgs, ... }: {
4+
channel = "stable-23.11";
5+
# Use https://search.nixos.org/packages to find packages
6+
packages = with pkgs; [
7+
gitFull
8+
rustup
9+
b4
10+
bat
11+
delta
12+
diff-so-fancy
13+
gcc
14+
];
15+
16+
# Sets environment variables in the workspace
17+
env = {};
18+
idx = {
19+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
20+
extensions = [
21+
"franneck94.vscode-rust-extension-pack"
22+
];
23+
24+
previews.enable = false;
25+
26+
workspace = {
27+
onCreate = {
28+
rust = "rustup default stable";
29+
first-build = "cargo build";
30+
};
31+
};
32+
};
33+
}

0 commit comments

Comments
 (0)