diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..5fd2390 --- /dev/null +++ b/flake.lock @@ -0,0 +1,24 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1697723726, + "narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=", + "path": "/nix/store/4jfc6vrkmq7z5pb651jh5b4kra5f1kwp-source", + "rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..4843d67 --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + description = "Developer environment shell for ERICA SaaS"; + + inputs = { }; + + outputs = { self, nixpkgs }: + let + # Helper to provide system-specific attributes + forAllSupportedSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f { + pkgs = import nixpkgs { inherit system; }; + }); + + supportedSystems = [ + "aarch64-darwin" + "aarch64-linux" + "x86_64-darwin" + "x86_64-linux" + ]; + in + + { + devShells = forAllSupportedSystems ({ pkgs }: { + default = pkgs.mkShell { + packages = with pkgs; [ + ruby_3_2 + imagemagick + libyaml + cmake + ]; + }; + }); + }; +}