more assigments for more readable code

This commit is contained in:
Daylin Morgan 2025-01-11 17:56:48 -06:00
parent 565082fd13
commit 00c93702ad
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -7,13 +7,9 @@
{ nixpkgs, ... }: { nixpkgs, ... }:
let let
inherit (nixpkgs.lib) genAttrs; inherit (nixpkgs.lib) genAttrs;
systems = [ systems = [ "x86_64-linux" ]; # "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
"x86_64-linux" forSystem = f: system: f (import nixpkgs { inherit system; });
"x86_64-darwin" forAllSystems = f: genAttrs systems (forSystem f);
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = f: genAttrs systems (system: f (import nixpkgs { inherit system; }));
in in
{ {
devShells = forAllSystems (pkgs: { devShells = forAllSystems (pkgs: {