feat(c): init c template
This commit is contained in:
parent
8e52914770
commit
01bc222af3
7 changed files with 108 additions and 0 deletions
28
templates/c/flake.nix
Normal file
28
templates/c/flake.nix
Normal 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 {});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue