added formatter

This commit is contained in:
Kristian Krsnik 2023-07-27 13:34:32 +02:00
parent 2511d6ae4d
commit 28901f25f1

View File

@ -5,12 +5,16 @@
nixpkgs.url = github:nixos/nixpkgs/nixos-23.05; nixpkgs.url = github:nixos/nixpkgs/nixos-23.05;
}; };
outputs = { self, nixpkgs }: outputs = {
let self,
nixpkgs,
}: let
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system}); pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
in { in {
# Formatter
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
# Packages # Packages
packages = forAllSystems (system: { packages = forAllSystems (system: {
@ -26,7 +30,6 @@
(poetry2nix.mkPoetryEnv {projectDir = self;}) (poetry2nix.mkPoetryEnv {projectDir = self;})
poetry poetry
]; ];
}; };
}); });