Skip to content

Commit

Permalink
Merge pull request #86 from akirak/gleam-file-watcher
Browse files Browse the repository at this point in the history
Add platform-specific file watchers to the Gleam template
  • Loading branch information
akirak authored Jun 2, 2024
2 parents 6a6c3ee + aa96581 commit b795a99
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions gleam/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@

devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
buildInputs = [
pkgs.gleam
pkgs.beam.interpreters.${erlang_version}
pkgs.beam.packages.${erlang_version}.rebar3
];
buildInputs = with pkgs; ([
gleam
beam.interpreters.${erlang_version}
beam.packages.${erlang_version}.rebar3
]
++ lib.optional stdenv.isLinux inotify-tools
++ (
lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
CoreFoundation
CoreServices
])
));
};
});
};
Expand Down

0 comments on commit b795a99

Please sign in to comment.