okak
This commit is contained in:
parent
3a586b93f0
commit
70bf5ebc0f
6 changed files with 83 additions and 0 deletions
|
|
@ -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
1
odin/.envrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
use flake
|
||||
34
odin/flake.nix
Normal file
34
odin/flake.nix
Normal 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
1
zig/.envrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
use flake
|
||||
3
zig/.gitignore
vendored
Normal file
3
zig/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.zig-cache/
|
||||
zig-out/
|
||||
*.o
|
||||
36
zig/flake.nix
Normal file
36
zig/flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue