Add Nix flake with ergogen dev shell
Assisted-by: Claude Opus 5.5 via Claude Code
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..3ddc189
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1792773339,
+ "narHash": "sha256-rZLrzrC6i+jnTAlvPZHogKDulY7WWDEv9hJeHieO7Zw=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "3ec636362e1816bc2f0888fa0fa2c69f1bc9e504",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..9f05653
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,15 @@
+{
+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+
+ outputs = { nixpkgs, ... }:
+ let
+ forAllSystems = nixpkgs.lib.genAttrs [ "aarch64-darwin" "x86_64-linux" ];
+ in
+ {
+ devShells = forAllSystems (system: {
+ default = nixpkgs.legacyPackages.${system}.mkShell {
+ packages = [ nixpkgs.legacyPackages.${system}.ergogen ];
+ };
+ });
+ };
+}