Skip to content

Commit

Permalink
Add direnv and flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
leoc committed Jan 5, 2024
1 parent 78e1784 commit c1d9c58
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
24 changes: 24 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -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
];
};
});
};
}

0 comments on commit c1d9c58

Please sign in to comment.