mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
refactor: reuse nixpkgs instances
https://discourse.nixos.org/t/using-nixpkgs-legacypackages-system-vs-import/17462/8
This commit is contained in:
parent
2a870b66b8
commit
3340d1a1a2
4 changed files with 18 additions and 17 deletions
|
|
@ -5,11 +5,9 @@
|
|||
}: let
|
||||
inherit (nixpkgs) lib;
|
||||
in {
|
||||
formatter = let
|
||||
formatterOf = system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
in
|
||||
pkgs.alejandra;
|
||||
in
|
||||
lib.genAttrs systems formatterOf;
|
||||
formatter =
|
||||
lib.genAttrs
|
||||
systems
|
||||
(system:
|
||||
nixpkgs.legacyPackages.${system}.alejandra);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue