1
0
Fork 0
forked from auxolotl/templates

feat(direnv): forAllSystems

This commit is contained in:
aemogie 2024-05-03 11:38:32 +05:30
parent d181eb421a
commit a1f5521383
No known key found for this signature in database

View file

@ -6,10 +6,18 @@
outputs =
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells.${system}.default = pkgs.mkShell { packages = [ pkgs.hello ]; };
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell { packages = [ pkgs.hello ]; };
});
};
}