meta: refactor c and dotnet

This commit is contained in:
Artur Manuel 2025-03-26 16:14:46 +00:00
commit a4368b5ddc
Signed by: amadaluzia
SSH key fingerprint: SHA256:Zwg7gBuZyaG48ucAZneJwltiXu0+tJb7c3lYt9AYlLg
14 changed files with 53 additions and 252 deletions

View file

@ -1,28 +1,21 @@
{
description = "REPLACE_DESC";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
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;
});
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 {});
};
formatter =
forAllSystems ({ pkgs }: pkgs.callPackage ./flake/formatter.nix { });
};
}