forked from auxolotl/templates
feat(direnv): forAllSystems
This commit is contained in:
parent
d181eb421a
commit
a1f5521383
|
@ -6,10 +6,18 @@
|
||||||
outputs =
|
outputs =
|
||||||
{ nixpkgs, ... }:
|
{ nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
forAllSystems =
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
function:
|
||||||
|
nixpkgs.lib.genAttrs [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
"x86_64-darwin"
|
||||||
|
"aarch64-darwin"
|
||||||
|
] (system: function nixpkgs.legacyPackages.${system});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShells.${system}.default = pkgs.mkShell { packages = [ pkgs.hello ]; };
|
devShells = forAllSystems (pkgs: {
|
||||||
|
default = pkgs.mkShell { packages = [ pkgs.hello ]; };
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue