update
This commit is contained in:
parent
70bf5ebc0f
commit
3db75de0e2
2 changed files with 38 additions and 0 deletions
34
crystal/flake.nix
Normal file
34
crystal/flake.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
@ -21,6 +21,10 @@
|
|||
path = ./odin;
|
||||
description = "odin template";
|
||||
};
|
||||
crystal = {
|
||||
path = ./crystal;
|
||||
description = "crystal template";
|
||||
};
|
||||
};
|
||||
|
||||
defaultTemplate = self.templates.go;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue