This commit is contained in:
Elisiei Yehorov 2025-08-12 21:18:14 +02:00
parent 3a586b93f0
commit 70bf5ebc0f
Signed by: elisiei
GPG key ID: BA1D158DCE3DF089
6 changed files with 83 additions and 0 deletions

View file

@ -13,6 +13,14 @@
path = ./go;
description = "go template";
};
zig = {
path = ./zig;
description = "zig template";
};
odin = {
path = ./odin;
description = "odin template";
};
};
defaultTemplate = self.templates.go;

1
odin/.envrc Normal file
View file

@ -0,0 +1 @@
use flake

34
odin/flake.nix Normal file
View file

@ -0,0 +1,34 @@
{
description = "minimal flake for odin 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; [ odin ];
};
}
);
};
}

1
zig/.envrc Normal file
View file

@ -0,0 +1 @@
use flake

3
zig/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
.zig-cache/
zig-out/
*.o

36
zig/flake.nix Normal file
View file

@ -0,0 +1,36 @@
{
description = "minimal flake for zig 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; [
zig
];
};
}
);
};
}