This commit is contained in:
Elisiei Yehorov 2025-08-16 08:43:46 +02:00
parent 70bf5ebc0f
commit 3db75de0e2
Signed by: elisiei
GPG key ID: BA1D158DCE3DF089
2 changed files with 38 additions and 0 deletions

34
crystal/flake.nix Normal file
View file

@ -0,0 +1,34 @@
{
description = "minimal flake for crystal dev";
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
outputs =
inputs:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forEachSupportedSystem =
f:
inputs.nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import inputs.nixpkgs { inherit system; };
}
);
in
{
devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell {
packages = with pkgs; [ crystal ];
};
}
);
};
}

View file

@ -21,6 +21,10 @@
path = ./odin;
description = "odin template";
};
crystal = {
path = ./crystal;
description = "crystal template";
};
};
defaultTemplate = self.templates.go;