feat(c): init c template

This commit is contained in:
Artur Manuel 2025-02-06 23:35:40 +00:00
commit 01bc222af3
7 changed files with 108 additions and 0 deletions

28
templates/c/flake.nix Normal file
View file

@ -0,0 +1,28 @@
{
description = "REPLACE_DESC";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
}: let
inherit (nixpkgs) lib;
forAllSystems = f:
lib.genAttrs ["x86_64-linux" "aarch64-linux"] (system:
f {
pkgs = import nixpkgs {
inherit system;
};
});
in {
packages = forAllSystems ({pkgs}: {
default = pkgs.callPackage ./flake/default.nix {};
REPLACE_ME = self.packages.${pkgs.system}.default;
});
formatter = forAllSystems ({pkgs}: pkgs.callPackage ./flake/formatter.nix {});
};
}