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