added formatter
This commit is contained in:
parent
2511d6ae4d
commit
28901f25f1
15
flake.nix
15
flake.nix
@ -5,16 +5,20 @@
|
|||||||
nixpkgs.url = github:nixos/nixpkgs/nixos-23.05;
|
nixpkgs.url = github:nixos/nixpkgs/nixos-23.05;
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = {
|
||||||
let
|
self,
|
||||||
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
nixpkgs,
|
||||||
|
}: let
|
||||||
|
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: {
|
||||||
default = pkgs.${system}.poetry2nix.mkPoetryApplication { projectDir = self; };
|
default = pkgs.${system}.poetry2nix.mkPoetryApplication {projectDir = self;};
|
||||||
});
|
});
|
||||||
|
|
||||||
# Dev Shell
|
# Dev Shell
|
||||||
@ -23,10 +27,9 @@
|
|||||||
shellHook = "Welcome to your nix-powered dev environment for dyn-gandi!";
|
shellHook = "Welcome to your nix-powered dev environment for dyn-gandi!";
|
||||||
|
|
||||||
packages = with pkgs.${system}; [
|
packages = with pkgs.${system}; [
|
||||||
(poetry2nix.mkPoetryEnv { projectDir = self; })
|
(poetry2nix.mkPoetryEnv {projectDir = self;})
|
||||||
poetry
|
poetry
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user