Skip to content

Commit 787da71

Browse files
lromorclaude
authored andcommitted
Add flake.nix wrapping shell.nix
Lets `nix develop` users enter the same dev environment as `nix-shell`. The flake's devShell imports ./shell.nix, so both entry points stay in sync with a single dependency list. No flake.lock is committed: inputs float on nixos-unstable, matching the existing shell.nix behaviour (which already tracks <nixpkgs>). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f52f9e0 commit 787da71

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ gcode2ps
88
test-out/
99
compile_commands.json
1010
.cache
11+
flake.lock

flake.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
description = "BeagleG dev shell";
3+
4+
# nixos-unstable @ 2026-06-26
5+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/e73de5be04e0eff4190a1432b946d469c794e7b4";
6+
inputs.flake-utils.url = "github:numtide/flake-utils";
7+
8+
outputs = { self, nixpkgs, flake-utils }:
9+
flake-utils.lib.eachDefaultSystem (system:
10+
let pkgs = import nixpkgs { inherit system; };
11+
in {
12+
devShells.default = import ./shell.nix { inherit pkgs; };
13+
});
14+
}

0 commit comments

Comments
 (0)