stackbuilders / nixpkgs-terraform

A collection of Terraform versions that are automatically updated.
MIT License
67 stars 4 forks source link

nix shell / nix run usage #74

Open docteurklein opened 5 months ago

docteurklein commented 5 months ago

I didn't see any reference to this in the README and struggled because of shell quote escaping, but here is my take on how to run this without having to have your own flake:

nix shell github:stackbuilders/nixpkgs-terraform#'"1.1.3"'
# or 
nix run github:stackbuilders/nixpkgs-terraform#'"1.1.3"' -- 

Note the " wrapped with ' so that your shell passes the correct string to nix.

fm7-1 commented 5 months ago

Hello, @docteurklein. Thank you for opening this issue. We are going to take a look at this and get back to you.

docteurklein commented 5 months ago

hi :) thanks, although I don't have a problem, I was just proposing to add this in the README for future users that would be confused by the utilization of dots . in the package name, which forces you to fight quotes interpretation between shells and nix. I should have made a PR instead, my bad :)

fm7-1 commented 5 months ago

Thank you for the context, @docteurklein. In that case, please fell free to open a PR if you have the chance, we would really appreciate it 😄