repo: init
welcome 👋 to my world 🌍
This commit is contained in:
parent
531fc54f1f
commit
edcf6f758e
11 changed files with 134 additions and 2 deletions
26
templates/python/flake.nix
Normal file
26
templates/python/flake.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
description = "Python flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
pkgsForEach = nixpkgs.legacyPackages;
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (system: {
|
||||
default = pkgsForEach.${system}.callPackage ./nix/package.nix { };
|
||||
python-app = self.packages.${system}.default;
|
||||
});
|
||||
|
||||
devShells = forAllSystems (system: {
|
||||
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {
|
||||
inherit (self.packages.${system}) python-app;
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue