Add roc flake

Signed-off-by: Mariano Uvalle <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-03-28 23:45:56 -07:00
parent 38ff1b241f
commit 94ba514ac7

29
flake.nix Normal file
View file

@ -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
];
};
}
);
}