Init
This commit is contained in:
31
flake.nix
Normal file
31
flake.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux"; # Adjust if necessary
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
packages.${system} = {
|
||||
xsdata-pydantic = pkgs.python313Packages.callPackage ./xsdata-pydantic.nix { };
|
||||
entsoe-apy = pkgs.python313Packages.callPackage ./entsoe-apy.nix {
|
||||
xsdata-pydantic = self.packages.${system}.xsdata-pydantic;
|
||||
};
|
||||
};
|
||||
|
||||
devShells.${system} = {
|
||||
default = pkgs.mkShell {
|
||||
name = "packaging";
|
||||
venvDir = "./.venv";
|
||||
buildInputs = [ pkgs.python313Packages.pip ] ++ builtins.attrValues self.packages.${system};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user