2 Commits

Author SHA1 Message Date
Austin Ziegler
cdbb73aa55
Prevent direnv errors when not using nix (#16875)
Right now, if a developer uses `direnv` but does not use `nix`, an error
is reported whenever changing into the OpenAPI generator directory:

```console
$ cd ~/oss/forks/openapi-generator
direnv: loading ~/oss/forks/openapi-generator/.envrc
direnv: using flake
environment:1270: nix: command not found
```

This uses the `has()` function to check for `nix` to *conditionally* run
the `use_flake` function.
2023-10-23 22:07:34 +08:00
msosnicki
41d691334a
Using nix flakes for developer shell (#14888) 2023-03-24 22:32:22 +08:00