diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..6370cad --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + description = "A basic flake with a shell"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/release-24.11"; + systems.url = "github:nix-systems/default"; + flake-utils = { + url = "github:numtide/flake-utils"; + inputs.systems.follows = "systems"; + }; + roc.url = "github:roc-lang/roc"; + }; + + outputs = + { nixpkgs, flake-utils, ... }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = nixpkgs.legacyPackages.${system}; + rocPkgs = roc.packages.${system}; + in + { + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + rocPkgs.cli + ]; + }; + } + ); +}