Skip to content

Commit

Permalink
add odin development flake
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinoinha committed Jan 18, 2025
1 parent 959eff5 commit ac98c12
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Once your preferred template has been initialized, you can use the provided shel
| [Nix] | [`nix`](./nix/) |
| [Node.js][node] | [`node`](./node/) |
| [OCaml] | [`ocaml`](./ocaml/) |
| [Odin] | [`odin`](./odin/) |
| [Open Policy Agent][opa] | [`opa`](./opa) |
| [PHP] | [`php`](./php/) |
| [PlatformIO] | [`platformio`](./platformio/) |
Expand Down Expand Up @@ -228,6 +229,10 @@ A dev template that's fully customizable.
- [odoc] 2.2.0
- [ocamlformat] 0.25.1

### [`odin`](./odin/)

- [Odin] 4.14.1

### [`opa`](./opa/)

- [Open Policy Agent][opa] 0.54.0
Expand Down Expand Up @@ -411,6 +416,7 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
[ocaml]: https://ocaml.org
[ocamlformat]: https://github.com/ocaml-ppx/ocamlformat
[odoc]: https://github.com/ocaml/odoc
[odin]: https://github.com/odin-lang/Odin
[omnisharp-roslyn]: https://github.com/OmniSharp/omnisharp-roslyn
[opa]: https://openpolicyagent.org
[pandoc]: https://pandoc.org
Expand Down
1 change: 1 addition & 0 deletions odin/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
25 changes: 25 additions & 0 deletions odin/flake.lock

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

23 changes: 23 additions & 0 deletions odin/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
description = "A Nix-flake-based Odin development environment";

inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";

outputs = {
self,
nixpkgs,
}: let
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
forEachSupportedSystem = f:
nixpkgs.lib.genAttrs supportedSystems (system:
f {
pkgs = import nixpkgs {inherit system;};
});
in {
devShells = forEachSupportedSystem ({pkgs}: {
default = pkgs.mkShell {
packages = with pkgs; [odin];
};
});
};
}

0 comments on commit ac98c12

Please sign in to comment.