From 84ba574dff487a0c750e2d623ee3cfddb6b1a741 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Wed, 15 Oct 2025 10:12:00 +0200 Subject: [PATCH] feat: Add apps.default output to flake for nix run support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an apps.default output to the Nix flake that enables running bd directly with 'nix run .' without needing to use the full package path. The apps output references the built bd binary from packages.default, allowing users to easily run the tool with: nix run . -- Tested with 'nix run . -- version' which correctly executes bd. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index fb648e1e..7bcd53d9 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,11 @@ maintainers = [ ]; }; }; + + apps.default = { + type = "app"; + program = "${self.packages.${system}.default}/bin/bd"; + }; } ); }