diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..ff7efd9 --- /dev/null +++ b/flake.nix @@ -0,0 +1,24 @@ +{ + description = "A very basic flake"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + }; + + outputs = { self, nixpkgs }: + let + systems = [ "x86_64-darwin" "aarch64-darwin" "x86_64-linux" ]; + createDevShell = system: + let + pkgs = import nixpkgs { inherit system; }; + in + pkgs.mkShell { + buildInputs = [ + pkgs.zig + ]; + }; + in + { + devShell = nixpkgs.lib.genAttrs systems createDevShell; + }; +} |