jonringer / nix-template

Make creating nix expressions easy
Creative Commons Zero v1.0 Universal
205 stars 8 forks source link

`PATH` argument does not accept directories #45

Closed ozkutuk closed 2 years ago

ozkutuk commented 2 years ago

Help text for the PATH argument is as follows:

<PATH>        directory or file to be written. In the case of a directory, a default.nix will be created.

However, I couldn't get this working with directories:

$ mkdir test
$ nix-template module -p test test/
Cannot write to file 'test/', already exists
jonringer commented 2 years ago

Yea, this isn't right. Thanks for bringing it up