Caution
⛔️This repository is no longer supported because the tenv derivation has been merged into NixOS/nixpkgs.
This project provides a Nix derivation for the tenv version manager, allowing you to easily install and use tenv
within a Nix environment.
Welcome to tenv, a versatile version manager for OpenTofu, Terraform and Terragrunt, written in Go. Our tool simplifies the complexity of handling different versions of these powerful tools, ensuring developers and DevOps professionals can focus on what matters most - building and deploying efficiently.
tenv is a successor of tofuenv and tfenv.
- Nix package manager installed on your system
-
Clone this repository:
git clone https://github.com/tofuutils/tenv-nix.git cd tenv-nix
-
Build the Nix derivation:
nix-build shell.nix
-
Enter the Nix shell environment:
nix-shell shell.nix
-
Use tenv commands inside the Nix shell:
tenv --version tenv tf install <version> tenv use <version>
To get more information about tenv, read README.md
default.nix
: Contains the Nix derivation for tenv.shell.nix
: Defines the Nix shell environment with tenv and other dependencies.versions.nix
: Specifies the versions of tenv and other packages used in the project.packages.nix
: Lists the common packages included in the Nix shell environment.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.
- tenv - Version manager for OpenTofu
- OpenTofu - Configuration language and processor
- Tofuenv - Version manager for OpenTofu
- tofuenv-nix - This project provides a Nix derivation for tofuenv