flake: reformat with nixfmt
This commit is contained in:
parent
a79e641851
commit
eaf4f56ac0
117 changed files with 2667 additions and 1592 deletions
|
@ -12,55 +12,66 @@
|
|||
pyproject-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [ "x86_64-linux" ];
|
||||
outputs =
|
||||
inputs:
|
||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [ "x86_64-linux" ];
|
||||
|
||||
imports = with inputs; [
|
||||
devshell.flakeModule
|
||||
];
|
||||
imports = with inputs; [
|
||||
devshell.flakeModule
|
||||
];
|
||||
|
||||
perSystem = { config, pkgs, ... }:
|
||||
let
|
||||
project = inputs.pyproject-nix.lib.project.loadPyproject {
|
||||
projectRoot = ./.;
|
||||
};
|
||||
perSystem =
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
project = inputs.pyproject-nix.lib.project.loadPyproject {
|
||||
projectRoot = ./.;
|
||||
};
|
||||
|
||||
python = pkgs.python3;
|
||||
python = pkgs.python3;
|
||||
|
||||
in
|
||||
{
|
||||
packages.default = (python.pkgs.buildPythonPackage (
|
||||
project.renderers.buildPythonPackage { inherit python; }
|
||||
)).overrideAttrs { allowSubstitutes = false; preferLocalBuild = true; };
|
||||
in
|
||||
{
|
||||
packages.default =
|
||||
(python.pkgs.buildPythonPackage (project.renderers.buildPythonPackage { inherit python; }))
|
||||
.overrideAttrs
|
||||
{
|
||||
allowSubstitutes = false;
|
||||
preferLocalBuild = true;
|
||||
};
|
||||
|
||||
devshells.default =
|
||||
let
|
||||
env = python.withPackages (
|
||||
project.renderers.withPackages {
|
||||
inherit python;
|
||||
extraPackages = p: with p; [
|
||||
python-lsp-server
|
||||
python-lsp-ruff
|
||||
pylsp-rope
|
||||
isort
|
||||
black
|
||||
devshells.default =
|
||||
let
|
||||
env = python.withPackages (
|
||||
project.renderers.withPackages {
|
||||
inherit python;
|
||||
extraPackages =
|
||||
p: with p; [
|
||||
python-lsp-server
|
||||
python-lsp-ruff
|
||||
pylsp-rope
|
||||
isort
|
||||
black
|
||||
];
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
devshell = {
|
||||
name = "rename";
|
||||
motd = "";
|
||||
|
||||
packages = [
|
||||
env
|
||||
];
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
devshell = {
|
||||
name = "rename";
|
||||
motd = "";
|
||||
|
||||
packages = [
|
||||
env
|
||||
};
|
||||
env = [
|
||||
{
|
||||
name = "PYTHONPATH";
|
||||
prefix = "${env}/${env.sitePackages}";
|
||||
}
|
||||
];
|
||||
};
|
||||
env = [
|
||||
{ name = "PYTHONPATH"; prefix = "${env}/${env.sitePackages}"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue