Created
September 18, 2022 21:46
-
-
Save myme/ac60ead4bda1abca7af6dcb7122e9749 to your computer and use it in GitHub Desktop.
Terraform Flake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "Terraform 1.1.9 package + shell flake"; | |
inputs.nixpkgs.url = "nixpkgs/nixos-22.05"; | |
outputs = { self, nixpkgs }: | |
let | |
system = "x86_64-linux"; | |
pkgs = import nixpkgs { inherit system; }; | |
terraform = pkgs.mkTerraform { | |
version = "1.1.9"; | |
sha256 = "sha256-6dyP3Y5cK+/qLoC2QPZW3QNgqOeVXegC06Pa7pSv1iE="; | |
vendorSha256 = "sha256-YI/KeoOIxgCAS3Q6SXaW8my0PyFD+pyksshQEAknsz4="; | |
}; | |
in { | |
packages.${system}.terraform = terraform; | |
devShell.${system} = pkgs.mkShell { | |
buildInputs = [ | |
terraform | |
]; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment