You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flake.nix
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,18 @@
25
25
};
26
26
in
27
27
{
28
+
# Exposes the local plugin to be consumed as a package.
28
29
packages=withpkgs.terraform-providers;{
29
30
inheritsysdig;
30
31
default=sysdig;
31
32
};
33
+
34
+
# To be used with `nix run`.
32
35
apps.terraform=flake-utils.lib.mkApp{
33
36
drv=pkgs.terraform.withPlugins(tf: [tf.sysdig]);
34
37
};
38
+
39
+
# Used for local development. Adds the required dependencies to work in this project.
35
40
devShells.default=
36
41
withpkgs;
37
42
mkShell{
@@ -41,6 +46,21 @@
41
46
];
42
47
};
43
48
49
+
# Used with `nix develop <url/path>#terraform-with-plugin`.
50
+
# You can load terraform with the sysdig plugin from a commit, a branch or a tag.
51
+
# For instance:
52
+
# - `nix develop github:sysdiglabs/terraform-provider-sysdig#terraform-with-plugin` will create a local dev shell with the version from the main branch.
53
+
# - `nix develop github:sysdiglabs/terraform-provider-sysdig/branch-name#terraform-with-plugin` with create a local dev shell with the version from the `branch-name` branch code.
54
+
# - `nix develop github:sysdiglabs/terraform-provider-sysdig/v1.2.3#terraform-with-plugin` will create a local dev shell with the version from the tag `v1.2.3` code (note the provided version is just an example).
55
+
# - `nix develop .#terraform-with-plugin` will create a local dev shell with terraform with the local code.
0 commit comments