repo: init

welcome 👋 to my world 🌍
This commit is contained in:
Artur Manuel 2024-08-11 08:22:48 +01:00
commit edcf6f758e
Failed to generate hash of commit
11 changed files with 134 additions and 2 deletions

View 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;
};
});
};
}