the-nix-way / dev-templates

Dev environments for numerous languages based on Nix flakes [maintainer=@lucperkins]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust template: nixpkgs is a thunk while a string, Boolean, or integer is expected

derekbelrose opened this issue · comments

It seems that there is a superfluous inputs in the inputs {} of the rust template.

How to reproduce:

nix flake new --template "github:the-nix-way/dev-templates#rust" test_project
direnv allow test_project
cd test_project

The error will be:

direnv: using flake
error:
       … while evaluating flake attribute 'nixpkgs'

         at /nix/store/w0rll2jadma2hc6fjmfmb69fjhlqz7n6-source/flake.nix:5:5:

            4|   inputs = {
            5|     inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
             |     ^
            6|     rust-overlay = {

       error: flake input attribute 'nixpkgs' is a thunk while a string, Boolean, or integer is expected

I'll submit a PR to fix this

I now realize there is another PR for this. If you want, please tell me to withdraw and delete my PR. There was no Issue created for the previous PR so I did not see that it was created until I checked my recent one.

@lucperkins Is there anything else you want me to do for this? I just don't want it to close due to lack of activity. Thanks!