From 7ba59e1e375ef56a2356afb7b665706ec27a70e2 Mon Sep 17 00:00:00 2001 From: Zach Sherman Date: Wed, 25 Oct 2023 10:37:15 -0700 Subject: [PATCH] readme: add flakes example this one took me a while to figure out it shouldn't be quoted. figure this could be useful for folks. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index bc8bac8..3f4e1e2 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,13 @@ example, `build_exe` might point to a script like this: exec nix-shell --run "$(printf '%q ' "$@")" ``` +or with flakes: + +```bash +#!/usr/bin/env bash +exec nix develop --command $(printf '%q ' "$@") +``` + `watch_exe` is an executable or script that emits a null-separated list of filenames for direnv to watch; firstaide passes these names to direnv's `watch_file` function. For example, the following script would ask direnv to