Nix: format with alejandra

This commit is contained in:
Toast 2025-06-05 13:25:48 +02:00
parent 15a00512a8
commit 174f845b2c
2 changed files with 33 additions and 34 deletions

View file

@ -3,37 +3,36 @@
inputs.nixpkgs.url = "nixpkgs/nixos-unstable"; inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }: outputs = {nixpkgs, ...}: let
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
pkgs = nixpkgs.legacyPackages.x86_64-linux; lib = nixpkgs.lib;
lib = nixpkgs.lib; in {
in devShells.x86_64-linux.default = pkgs.mkShellNoCC {
{ name = "leek-devshell";
devShells.x86_64-linux.default = pkgs.mkShellNoCC { packages = with pkgs; [
name = "leek-devshell"; ruff
packages = with pkgs; [ (
ruff python3.withPackages (
( ps:
python3.withPackages (ps: with ps;[ with ps; [
# Dev dependencies # Dev dependencies
python-lsp-server python-lsp-server
pylsp-mypy pylsp-mypy
mypy mypy
setuptools-scm setuptools-scm
#App dependencies #App dependencies
pyside6 pyside6
tomlkit tomlkit
vdf vdf
] ]
)
) )
]; )
}; ];
packages.x86_64-linux = rec {
default = leek;
leek = pkgs.callPackage ./package.nix { };
};
}; };
packages.x86_64-linux = rec {
default = leek;
leek = pkgs.callPackage ./package.nix {};
};
};
} }

View file

@ -1,8 +1,9 @@
{ {
kdePackages, kdePackages,
python3Packages, python3Packages,
qt6 qt6,
}: python3Packages.buildPythonApplication rec { }:
python3Packages.buildPythonApplication rec {
pname = "leek"; pname = "leek";
version = "0.2"; version = "0.2";
pyproject = true; pyproject = true;
@ -14,7 +15,6 @@
setuptools-scm setuptools-scm
]; ];
dependencies = with python3Packages; [ dependencies = with python3Packages; [
pyside6 pyside6
tomlkit tomlkit
@ -27,7 +27,7 @@
propagatedBuildInputs = [ propagatedBuildInputs = [
kdePackages.kirigami kdePackages.kirigami
]; ];
makeWrapperArgs = [ makeWrapperArgs = [
"\${qtWrapperArgs[@]}" "\${qtWrapperArgs[@]}"