🎨 format flake.nix

This commit is contained in:
Laureηt 2023-05-18 19:07:51 +02:00
parent 345ec12cd3
commit 2575c9aa81
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -1,13 +1,16 @@
{ {
description = "nio-llm"; description = "nio-llm";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs = {
inputs.flake-utils.url = "github:numtide/flake-utils"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.poetry2nix = { flake-utils.url = "github:numtide/flake-utils";
url = "github:nix-community/poetry2nix";
inputs = { poetry2nix = {
nixpkgs.follows = "nixpkgs"; url = "github:nix-community/poetry2nix";
flake-utils.follows = "flake-utils"; inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
}; };
}; };
@ -24,9 +27,7 @@
preferWheels = true; preferWheels = true;
python = pkgs.python311; python = pkgs.python311;
}; };
in { in {
packages.default = pkgs.poetry2nix.mkPoetryApplication { packages.default = pkgs.poetry2nix.mkPoetryApplication {
projectDir = ./.; projectDir = ./.;
preferWheels = true; preferWheels = true;
@ -36,5 +37,4 @@
devShells.default = devShells.default =
pkgs.mkShell { buildInputs = [ pythonEnv pkgs.poetry ]; }; pkgs.mkShell { buildInputs = [ pythonEnv pkgs.poetry ]; };
}); });
} }