meta: refactor repository

This commit is contained in:
Artur Manuel 2025-03-26 15:08:13 +00:00
commit 599fe1903f
Signed by: amadaluzia
SSH key fingerprint: SHA256:Zwg7gBuZyaG48ucAZneJwltiXu0+tJb7c3lYt9AYlLg
28 changed files with 276 additions and 136 deletions

32
templates/nim/flake.nix Normal file
View file

@ -0,0 +1,32 @@
{
description = "CHANGE DESC";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
};
outputs =
inputs@{ self, nixpkgs, ... }:
let
inherit (nixpkgs) lib;
pkgsFor = nixpkgs.legacyPackages;
eachSystem = f: lib.genAttrs (import inputs.systems) (system: f system pkgsFor.${system});
in
{
packages = eachSystem (
system: pkgs: {
default = pkgs.callPackage ./flake/package.nix { };
CHANGE_NAME = self.packages.${system}.default;
}
);
devShells = eachSystem (
_system: pkgs: {
default = pkgs.callPackage ./flake/shell.nix { };
}
);
formatter = eachSystem (_: pkgs: pkgs.callPackage ./flake/formatter.nix { });
};
}