flake-template-hell/templates/c/flake.nix
2025-02-06 23:35:40 +00:00

28 lines
627 B
Nix

{
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 {});
};
}