mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 05:23:54 -05:00
flake: fix devhsell problems on macOS
This commit is contained in:
parent
4288d83a02
commit
db2b4adb10
17
flake.nix
17
flake.nix
|
@ -63,13 +63,24 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {self, ...}: let
|
outputs = {self, ...}: let
|
||||||
allSystems = [
|
allLinuxSystems = [
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
|
];
|
||||||
|
|
||||||
|
allMacSystems = [
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
allSystems = allLinuxSystems ++ allMacSystems;
|
||||||
|
|
||||||
|
forAllLinuxSystems = f:
|
||||||
|
self.inputs.nixpkgs.lib.genAttrs allLinuxSystems (system:
|
||||||
|
f {
|
||||||
|
pkgs = import self.inputs.nixpkgs {inherit system;};
|
||||||
|
});
|
||||||
|
|
||||||
forAllSystems = f:
|
forAllSystems = f:
|
||||||
self.inputs.nixpkgs.lib.genAttrs allSystems (system:
|
self.inputs.nixpkgs.lib.genAttrs allSystems (system:
|
||||||
f {
|
f {
|
||||||
|
@ -85,7 +96,7 @@
|
||||||
"slateport"
|
"slateport"
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
devShells = forAllSystems ({pkgs}: {
|
devShells = forAllLinuxSystems ({pkgs}: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages =
|
packages =
|
||||||
(with pkgs; [
|
(with pkgs; [
|
||||||
|
@ -105,7 +116,7 @@
|
||||||
|
|
||||||
formatter = forAllSystems ({pkgs}: pkgs.alejandra);
|
formatter = forAllSystems ({pkgs}: pkgs.alejandra);
|
||||||
|
|
||||||
packages = forAllSystems ({pkgs}: {
|
packages = forAllLinuxSystems ({pkgs}: {
|
||||||
default = pkgs.writeShellApplication {
|
default = pkgs.writeShellApplication {
|
||||||
name = "clean-install";
|
name = "clean-install";
|
||||||
text = ./flake/clean-install.sh;
|
text = ./flake/clean-install.sh;
|
||||||
|
|
Loading…
Reference in a new issue