mirror of
https://github.com/Laurent2916/nio-llm.git
synced 2024-11-09 23:12:05 +00:00
41 lines
1,013 B
Nix
41 lines
1,013 B
Nix
{
|
|
description = "nio-llm";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
poetry2nix = {
|
|
url = "github:nix-community/poetry2nix";
|
|
inputs = {
|
|
nixpkgs.follows = "nixpkgs";
|
|
flake-utils.follows = "flake-utils";
|
|
};
|
|
};
|
|
};
|
|
|
|
outputs = { nixpkgs, flake-utils, poetry2nix, ... }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ poetry2nix.overlay ];
|
|
};
|
|
|
|
pythonEnv = pkgs.poetry2nix.mkPoetryEnv {
|
|
projectDir = ./.;
|
|
preferWheels = true;
|
|
python = pkgs.python311;
|
|
};
|
|
in {
|
|
packages.default = pkgs.poetry2nix.mkPoetryApplication {
|
|
projectDir = ./.;
|
|
preferWheels = true;
|
|
python = pkgs.python311;
|
|
};
|
|
|
|
devShells.default =
|
|
pkgs.mkShell { buildInputs = [ pythonEnv pkgs.poetry ]; };
|
|
});
|
|
}
|