feat(python): add python template

This commit is contained in:
Artur Manuel 2025-03-01 23:20:20 +00:00
commit c993013203
Signed by: amadaluzia
SSH key fingerprint: SHA256:Zwg7gBuZyaG48ucAZneJwltiXu0+tJb7c3lYt9AYlLg
8 changed files with 102 additions and 0 deletions

View file

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