🎨 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,15 +1,18 @@
{ {
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";
poetry2nix = {
url = "github:nix-community/poetry2nix"; url = "github:nix-community/poetry2nix";
inputs = { inputs = {
nixpkgs.follows = "nixpkgs"; nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils"; flake-utils.follows = "flake-utils";
}; };
}; };
};
outputs = { nixpkgs, flake-utils, poetry2nix, ... }: outputs = { nixpkgs, flake-utils, poetry2nix, ... }:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
@ -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 ]; };
}); });
} }